Interface IDeterministicRandom
- Namespace
- Backdash.Synchronizing.Random
- Assembly
- Backdash.dll
Defines a random number generator
public interface IDeterministicRandom
Methods
Next()
Returns a random unsigned integer.
uint Next()
Returns
NextFloat()
Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
float NextFloat()
Returns
NextInt()
Returns a random non-negative integer.
int NextInt()
Returns
NextInt(int)
Returns a random integer that is between 0 and maxValue
int NextInt(int maxValue)
Parameters
maxValue
int
Returns
NextInt(int, int)
Returns a random integer that is within a specified range.
int NextInt(int minValue, int maxValue)
Parameters
Returns
UpdateSeed(int, int)
Updates the seed for the current random instance
void UpdateSeed(int newState, int extraState = 0)