Summary
Provides extension methods on the
Random type.
Static methods
byte[] | | Creates a byte array of length elements and populates it with random numbers. |
double | | 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 | | Returns a random number that is greater than or equal to 0.0f, and less than 1.0f. |
float | | Returns a random number that is greater than or equal to 0, and less than max. |
float | |
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. |