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