GetByte Method
GetByte(RandomNumberGenerator, Int32, Int32)
Get a langword_csharp_byte with a random value.
C#
public static byte GetByte(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.Byte