Rnd
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
A random. This class cannot be inherited.
Inheritance
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Rnd()
Default constructor.
Rnd(int)
Constructor.
Parameters
Name | Description |
---|---|
| The seed used to generate dandom values. |
Fields
Alphabet
The alphabet.
Field Value
Methods
Array(int)
Generates a random array of bytes.
Parameters
Name | Description |
---|---|
| The array size. |
Returns
Name | Description |
---|---|
byte[] | A byte[] array filled with random values. |
Exceptions
Name | Description |
---|---|
Thrown when one or more arguments are outside the required range. |
Double()
Gets the double.
Returns
Name | Description |
---|---|
A double. |
Fill(byte[], int, int)
Fills random array of bytes.
Parameters
Name | Description |
---|---|
| The array. |
| The start index where to start fill random values. |
| The number of random values to generate. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are null. | |
Thrown when one or more arguments are outside the required range. |
Int()
Ints.
Returns
Name | Description |
---|---|
A double. |
Int(int, int)
Ints.
Parameters
Returns
Name | Description |
---|---|
A double. |
Long()
Gets the long.
Returns
Name | Description |
---|---|
A long. |
Seed(int)
Change random seed.
Parameters
Name | Description |
---|---|
| The seed. |
String(int)
Generates a random string.
Parameters
Name | Description |
---|---|
| The length. |
Returns
Name | Description |
---|---|
A string. |
Exceptions
Name | Description |
---|---|
Thrown when one or more arguments are outside the required range. |
Last updated