docs.unity.cn
    Show / Hide Table of Contents

    Class RandomHelpers

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

    Inheritance
    Object
    RandomHelpers
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Networking.Transport.Utilities
    Syntax
    public static class RandomHelpers

    Methods

    GetRandomULong()

    Get a random ulong value.

    Declaration
    public static ulong GetRandomULong()
    Returns
    Type Description
    UInt64

    a ushort in [1..uint.MaxValue - 1] range

    GetRandomUShort()

    Get a random ushort value.

    Declaration
    public static ushort GetRandomUShort()
    Returns
    Type Description
    UInt16

    a ushort in [1..ushort.MaxValue - 1] range

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 28, 2023