SimpleRNG
A simple implementation of the RNG trait using Scala's built-in Random class. This RNG generates random values based on a seed.
Value parameters
- seed
-
the initial seed for the random number generator.
Attributes
- Note
-
This RNG is deterministic, meaning it will produce the same sequence of random values for the same seed.
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RNGclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Generates a random boolean value along with the next RNG state.
Generates a random double value within the range [0.0, 1.0) along with the next RNG state.
Generates a random double value within the range [0.0, 1.0) along with the next RNG state.
Attributes
- Definition Classes
Generates a random double value within a specified range.
Generates a random integer value along with the next RNG state.
Generates a random integer value within a specified range (inclusive of min, exclusive of max).
Generates a random integer value within a specified range (inclusive of min, exclusive of max).
Attributes
- Definition Classes
Generates a random long value along with the next RNG state.
Generates a random string of a specified length.
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product