DRandom class
Suppliment pseudorandom random number generator for dart based on similar implementations in mono C#
Constructors
- DRandom()
- Create DRandom
- DRandom.withSeed(int seed)
Properties
Methods
-
next(
) → int - Return the next random integer.
-
nextDouble(
) → double - Returns random double value between 0.0 to 1.0.
-
nextFromMax(
int maxValue) → int -
Get the next random integer exclusive to
maxValue
. -
nextFromRange(
int minValue, int maxValue) → int -
Return the next random integer inclusive to
minValue
exclusive tomaxValue
. -
nextInts(
int size) → List< int?> -
Return a list of random ints of
size
. -
nextIntsUnique(
int minValue, int maxValue, int size) → Map< int, int> -
Returns a Map of unique integers of
size
with random integer inclusive tominValue
exclusive tomaxValue
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sample(
) → double - Return sample from PRNG
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited