Represents a pseudo-random number generator.
The values produced by the Random class equals to those produced by the
- Reference: Sugar
- Namespace: Sugar
Creates a new instance of the class which uses current time as a random seed.
Creates a new instance of the class with specified random seed.
- aSeed: A number used to calculate a starting value for the pseudo-random number sequence. Providing an identical seed value to different Random objects causes each instance to produce identical sequences of random numbers.
Returns random uniformly distributed double value between 0.0 and 1.0.
Returns a nonnegative random integer.
Returns a nonnegative random integer that is less than the specified maximum.
- MaxValuePlusOne: The exclusive upper bound of the random number to be generated.