docs.unity.cn
    Show / Hide Table of Contents

    Class RandomHelpers

    A simple method to obtain a random ushort provided by the class.

    Inheritance
    Object
    RandomHelpers
    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

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, March 31, 2022
    Terms of use