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

    Returns a random integer within the specified range.

    Namespace: DevExpress.Data.Utils

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public int Next(
        int minValue,
        int maxValue
    )

    Parameters

    Name Type Description
    minValue Int32

    The inclusive lower bound of the random number returned.

    maxValue Int32

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

    Returns

    Type Description
    Int32

    A 32-bit signed integer greater than or equal to minValue and less than maxValue.

    Remarks

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

    See Also