Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Util.ExtensionMethods.RandomExtensions

Summary

Provides extension methods on the Random type.

Static methods

byte[]
NextBytes(this Random rnd, int length)
Creates a byte array of length elements and populates it with random numbers.
double
NextDouble(this Random rnd, double max)
Returns a random number that is greater than or equal to 0, and less than max.
double
NextDouble(this Random rnd, double min, double max)
Returns a random number that is greater than or equal to min, and less than max.
float
NextSingle(this Random rnd)
Returns a random number that is greater than or equal to 0.0f, and less than 1.0f.
float
NextSingle(this Random rnd, float max)
Returns a random number that is greater than or equal to 0, and less than max.
float
NextSingle(this Random rnd, float min, float max)
Returns a random number that is greater than or equal to min, and less than max.
string
NextString(this Random rnd, int length, string charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")
Returns a random string of length length, containing only characters listed in charset.