20 import java.util.Random;
22 import ca.uqac.lif.cep.ProcessorException;
23 import ca.uqac.lif.cep.UniformProcessor;
52 m_random =
new Random();
53 m_minValue = min_value;
54 m_maxValue = max_value;
58 protected boolean compute(Object[] inputs, Object[] outputs)
throws ProcessorException
60 outputs[0] = m_random.nextInt(m_maxValue - m_minValue) +
m_minValue;
Processor that converts any input into a random integer.
int m_maxValue
The minimum random number that can be generated.
int m_minValue
The minimum random number that can be generated.
Random m_random
A Random object.