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

hashCode int
The hash code for this object.
no setterinherited
inext int
getter/setter pair
inextp int
getter/setter pair
mBig int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seedArray List<int>
getter/setter pair

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 to maxValue.
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 to minValue exclusive to maxValue.
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