Skip to main content
All docs
V25.1
  • NonCryptographicRandom.Next(Int32) Method

    Returns a non-negative random integer that is less than the specified maximum.

    Namespace: DevExpress.Data.Utils

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public int Next(
        int maxValue
    )

    Parameters

    Name Type Description
    maxValue Int32

    The exclusive upper bound of the random number to be generated. maxValue must be greater than or equal to 0.

    Returns

    Type Description
    Int32

    A 32-bit signed integer that is greater than or equal to 0, and less than maxValue.

    Remarks

    The range of return values ordinarily includes 0 but not maxValue. If maxValue equals 0, the Next(System.Int32) method returns 0.

    See Also