docs.unity3d.com
    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
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023