Class RandomHelpers
A simple method to obtain a random ushort provided by the Unity.Mathematics.Random class.
Inherited Members
Namespace: Unity.Networking.Transport.Utilities
Assembly: Unity.Networking.Transport.dll
Syntax
public static class RandomHelpers
Methods
GetRandomULong()
Get a random ulong value.
Declaration
public static ulong GetRandomULong()
Returns
Type | Description |
---|---|
ulong | a ushort in [1..uint.MaxValue - 1] range |
GetRandomUShort()
Get a random ushort value.
Declaration
public static ushort GetRandomUShort()
Returns
Type | Description |
---|---|
ushort | a ushort in [1..ushort.MaxValue - 1] range |