Show / Hide Table of Contents

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
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

byte

In this article
Back to top Generated by DocFX