Click or drag to resize

RngOctet Method

Generate a single random octet (byte).

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.25611 (23.0.0.0)
Syntax
public static byte Octet()

Return Value

Byte
Single byte value randomly chosen between 0 and 255
Example
C#
byte by = Rng.Octet();  // Generate a random single byte (octet)
Console.WriteLine("Rng.Octet()={0}", by);  // 0 <= by < 256
See Also