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