docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UniformSampler

    Returns uniformly distributed random values within a designated range.

    Inheritance
    object
    UniformSampler
    Implements
    ISampler
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Perception.Randomization.Samplers
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class UniformSampler : ISampler

    Constructors

    Name Description
    UniformSampler()

    Constructs a UniformSampler

    UniformSampler(float, float)

    Constructs a new uniform distribution sampler

    Fields

    Name Description
    range

    A range bounding the values generated by this sampler

    Methods

    Name Description
    Sample()

    Generates one sample

    Validate()

    Validates that the sampler is configured properly

    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)