docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IterateSeed

    IterateSeed(uint, uint)

    Generates new a new non-zero random state by deterministically hashing a base seed with an iteration index

    Declaration
    public static uint IterateSeed(uint index, uint baseSeed)
    Parameters
    Type Name Description
    uint index

    Usually the current scenario iteration or framesSinceInitialization

    uint baseSeed

    The seed to be offset

    Returns
    Type Description
    uint

    A new random state

    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)