Returns a state action for generating a pseudo-random double value that is uniformly distributed between 0.0 and 1.0
Returns a state action for generating a pseudo-random double value
that is uniformly distributed between min
and max
Returns a state action for generating a list of pseudo-random
double values with a size equal to count
.
Given a seed
, generates a pseudo-random integer.
Generates a state action for generating pseudo-random between min (inclusive) and max (exclusive).
Returns a state action for generating a list of pseudo-random
int values with a size equal to count
.
Generates a state action for generating a pseudo-random positive integer.
Functions for generating pseudo-random numbers.
The algorithm used is a "linear congruential generator", the same one used in
scala.util.Random
or injava.util.Random
.Note that the generated numbers are not cryptographically secure. Consider instead using
java.security.SecureRandom
to get a cryptographically secure pseudo-random number generator for use by security-sensitive applications.Credits: