CryptoSys PKI Pro Manual

Rng.Octet Method

Generate a single random octet (byte).

Syntax

[C#]
public static byte Octet()
[VB]
Public Shared Function Octet As Byte

Parameters

Return Value

Byte
Single byte value randomly chosen between 0 and 255

Example

byte by = Rng.Octet();  // Generate a random single byte (octet)
Console.WriteLine("Rng.Octet()={0}", by);  // 0 <= by < 256

See Also

VB6/C equivalent: RNG_Number

[Contents] [Index]

[PREV: Rng.Number Method...]   [Contents]   [Index]   
   [NEXT: Rng.Test Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.