RNG
A trait representing a Random Number Generator (RNG).
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SimpleRNG
Members list
Value members
Abstract methods
Generates a random boolean value along with the next RNG state.
Generates a random boolean value along with the next RNG state.
Attributes
- Returns
-
a tuple containing a random boolean and 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
- Returns
-
a tuple containing a random double and the next RNG state.
Generates a random double value within a specified range.
Generates a random double value within a specified range.
Value parameters
- isMaxExcluded
-
whether the maximum value is excluded.
- max
-
the maximum value (exclusive or inclusive based on isMaxExcluded).
- min
-
the minimum value (inclusive).
Attributes
- Returns
-
a tuple containing a random double and the next RNG state.
Generates a random integer value along with the next RNG state.
Generates a random integer value along with the next RNG state.
Attributes
- Returns
-
a tuple containing a random integer and 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).
Value parameters
- max
-
the maximum value (exclusive).
- min
-
the minimum value (inclusive).
Attributes
- Returns
-
a tuple containing a random integer and the next RNG state.
Generates a random long value along with the next RNG state.
Generates a random long value along with the next RNG state.
Attributes
- Returns
-
a tuple containing a random long and the next RNG state.
Generates a random string of a specified length.
Generates a random string of a specified length.
Value parameters
- length
-
the length of the random string to generate.
Attributes
- Returns
-
a tuple containing a random string and the next RNG state.