Class RandomHelpers
A simple method to obtain a random ushort provided by the
Namespace: Unity.Networking.Transport.Utilities
Syntax
public static class RandomHelpers : object
Methods
GetRandomULong()
Declaration
public static ulong GetRandomULong()
Returns
Type | Description |
---|---|
UInt64 | a ushort in [1..uint.MaxValue - 1] range |
GetRandomUShort()
Declaration
public static ushort GetRandomUShort()
Returns
Type | Description |
---|---|
UInt16 | a ushort in [1..ushort.MaxValue - 1] range |