RandomUtils class abstract

This class contains functions related to getting random numbers. You can set the see with setSeed but keep in mind this will reset Random instance when called

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

doubleInRange(double min, double max) double
Gives a double in the given range from min (inclusive) to max (inclusive)
intInRange(int min, int max) int
Gives an int in the given range from min (inclusive) to max (inclusive)
setSeed(int seed) → void
Sets the seed for these. Note that this creates a new Random instance so it will reset the seed