Summary
This class offers static functions which generate cryptographically-strong random numbers in a thread-safe manner.
Static methods
string | GenerateString(int length, string takeCharactersFrom = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") |
Generates a random string of the specified length, taking characters from the specified arsenal of characters. |
int | | Returns a random non-negative integer. |
int | | Returns a non-negative random number less than max. |
int | |
Returns a random integer between min (inclusive) and max (exclusive). |
bool | | Returns a random boolean. |
void | | Fills the specified buffer with cryptographically-strong random bytes. |
byte[] | |
Returns a new array with the specified number of elements, filled with cryptographically-strong random bytes. |
double | | Returns a random double between 0.0 and 1.0. |
double | |
Returns a random double between min and max. It is unclear whether
min or max can ever be returned. |
long | | Returns a random non-negative 64-bit integer. |