Search Results for

    Show / Hide Table of Contents

    Interface IRandom

    Interface for random number generation.

    Namespace: BayesServer
    Assembly: BayesServer.dll
    Syntax
    public interface IRandom

    Methods

    NextDouble()

    Generates a random floating-point number that is greater than or equal to 0.0, and less than 1.0.

    Declaration
    double NextDouble()
    Returns
    Type Description
    Double

    NextInt(Int32, Int32)

    Generates a random integer between [minValue..maxValue).

    Declaration
    int NextInt(int minValue, int maxValue)
    Parameters
    Type Name Description
    Int32 minValue

    the least legal value for the Random number.

    Int32 maxValue

    One greater than the greatest legal return value.

    Returns
    Type Description
    Int32

    Random int between [minValue..maxValue).

    See Also

    RandomDefault
    In This Article
    Back to top Copyright Bayes Server Ltd. All rights Reserved.