 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.random;
65 m_min = min.floatValue();
66 m_max = max.floatValue();
78 m_min = min.floatValue();
79 m_max = max.floatValue();
135 if((element <=
m_min) || (element.isNaN()))
Interface signaling that a picker can be shrunk.
Miscellaneous pickers performing various functions.
RandomFloat(Number min, Number max)
Creates a new instance of the picker.
static final transient RandomFloat instance
A public static instance of RandomFloat.
RandomFloat()
Default constructor.
RandomFloat duplicate(boolean with_state)
Creates a copy of the RandomIntervalFloat picker.
Shrinkable< Float > shrink(Float element, Picker< Float > decision, float magnitude)
Float pick()
Picks a random float in the specified interval.
RandomFloat setSeed(int seed)
A RelativePicker that only throws a NoMoreElementException when the pick() method is called.
void reset()
Puts the picker back into its initial state.
float m_max
The higher bound of the interval.
Random Duplicate()
Creates a new instance of the class with the exact same internal states that the original one.
Picks an object based on the value of a random number generator.
An instance of this class is used to generate a stream of pseudorandom numbers.
Shrinkable< Float > shrink(Float element)
float m_min
The lower bound of the interval.
float nextFloat()
Returns the next pseudorandom, uniformly distributed.
Picks a floating point number uniformly in an interval.
transient Random m_random