docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RandomUniform

    RandomUniform(TensorFloat, float, float, float?)

    Generates an output tensor of a given shape with random values in a uniform distribution between a given low and high, and an optional seed value.

    Declaration
    public override void RandomUniform(TensorFloat O, float low, float high, float? seed)
    Parameters
    Type Name Description
    TensorFloat O

    The output tensor to be computed and filled.

    float low

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

    float high

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

    float? seed

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

    Overrides
    CPUBackend.RandomUniform(TensorFloat, float, float, float?)
    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)