GetInt32 Method
GetInt32(RandomNumberGenerator, int, int)
Gets a random 32-bit signed int.
C#
public static int GetInt32(this RandomNumberGenerator rng, int fromInclusive, int toExclusive)
Parameters
Type | Name | Description |
---|---|---|
RandomNumberGenerator | rng | The System.Security.Cryptography.RandomNumberGenerator instance being extended. |
int | fromInclusive | The lowest value of the range. |
int | toExclusive | One above the highest value of the range. |
Returns
int
Random Int32
.