Class RandomNumberGeneratorExtensions
Inheritance
RandomNumberGeneratorExtensions
Assembly: SoCore.dll
Syntax
public static class RandomNumberGeneratorExtensions
Methods
Next(RandomNumberGenerator)
Returns a non-negative random integer.
Declaration
public static int Next(this RandomNumberGenerator rnd)
Parameters
Returns
Next(RandomNumberGenerator, int)
Returns a non-negative random integer that is less than the specified maximum.
Declaration
public static int Next(this RandomNumberGenerator rnd, int maxValue)
Parameters
Returns
Next(RandomNumberGenerator, int, int)
Returns a random integer that is within a specified range.
Declaration
public static int Next(this RandomNumberGenerator rnd, int minValue, int maxValue)
Parameters
Type |
Name |
Description |
RandomNumberGenerator |
rnd |
|
int |
minValue |
The inclusive lower bound of the random number returned.
|
int |
maxValue |
The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.
|
Returns