GetByte Method
GetByte(RandomNumberGenerator, int, int)
Get a byte with a random value.
C#
public static byte GetByte(this RandomNumberGenerator rng, int fromInclusive, int toExclusive)
Parameters
Type | Name | Description |
---|---|---|
Random |
rng | The System. |
int | fromInclusive | The lowest value of the range. |
int | toExclusive | One above the highest value of the range. |
Returns
byte