• Hello
Search Results for

    Show / Hide Table of Contents

    Interface IRandom

    Provides methods for generating random values.

    Namespace: GUPS.EasyPooling.Policy.Random
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IRandom

    Methods

    GetRandom()

    Generates a random floating-point number between -1 (inclusive) and 1 (exclusive).

    Declaration
    float GetRandom()
    Returns
    Type Description
    System.Single

    A random floating-point number.

    GetRandom(Single, Single)

    Generates a random floating-point number between the specified values.

    Declaration
    float GetRandom(float _MinInclusive, float _MaxExclusive)
    Parameters
    Type Name Description
    System.Single _MinInclusive

    The minimum value (inclusive).

    System.Single _MaxExclusive

    The maximum value (exclusive).

    Returns
    Type Description
    System.Single

    GetRandomVector2()

    Generates a random 2D vector with components between -1 (inclusive) and 1 (exclusive).

    Declaration
    Vector2 GetRandomVector2()
    Returns
    Type Description
    Vector2

    A random 2D vector.

    GetRandomVector3()

    Generates a random 3D vector with components between -1 (inclusive) and 1 (exclusive).

    Declaration
    Vector3 GetRandomVector3()
    Returns
    Type Description
    Vector3

    A random 3D vector.

    In This Article
    Back to top GuardingPearSoftware documentation