docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RandomPositionInsideUnitSphere

    RandomPositionInsideUnitSphere(uint)

    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
    uint seed

    A seed to the random number generator

    Returns
    Type Description
    float3

    A point inside of the unit sphere, fairly distributed

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)