Interface IRandom
Provides random value generation.
public interface IRandom
Methods
Next(int, int)
Returns a random integer within the specified range.
int Next(int minValue, int maxValue)
Parameters
minValueintInclusive lower bound of the random number.
maxValueintExclusive upper bound of the random number.
Returns
- int
A random integer in the specified range.
NextDouble()
Returns a random floating-point number in the range [0.0, 1.0).
double NextDouble()
Returns
- double
A random floating-point number.