docs.unity.cn
    Show / Hide Table of Contents

    Method RandomPositionInsideUnitSphere

    RandomPositionInsideUnitSphere(UInt32)

    A function that returns a single random position, fairly distributed inside the unit sphere.

    Declaration
    public static float3 RandomPositionInsideUnitSphere(uint seed)
    Parameters
    Type Name Description
    UInt32 seed

    A seed to the random number generator

    Returns
    Type Description
    float3

    A point inside of the unit sphere, fairly distributed

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