Class RandomHelpers
A simple method to obtain a random ushort provided by the Random class.
Inherited Members
Namespace: Unity.Networking.Transport.Utilities
Syntax
public static class RandomHelpers
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 |