docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor RandomUniformLike

    RandomUniformLike(string, string, float, float, float?)

    Initializes and returns an instance of RandomUniformLike random layer.

    Declaration
    public RandomUniformLike(string name, string input, float low, float high, float? seed)
    Parameters
    Type Name Description
    string name

    The name to use for the output tensor of the layer.

    string input

    The name to use for the input tensor of the layer. The layer does not use the values of this tensor in the computation.

    float low

    The lower end of the interval of the uniform distribution used to generate the output.

    float high

    The upper end of the interval of the uniform distribution used to generate the output.

    float? seed

    The optional seed to use for the random number generation. If this is null the layer generates a seed using System.Random().

    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)