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

    Returns a cryptographically secure, random integer within the specified range.

    Namespace: DevExpress.Data.Utils.Security

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public static int Next(
        int minInclusive,
        int maxExclusive
    )

    Parameters

    Name Type Description
    minInclusive Int32

    The inclusive lower bound of the random number returned.

    maxExclusive Int32

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

    Returns

    Type Description
    Int32

    A 32-bit signed integer greater than or equal to minInclusive and less than maxExclusive.

    Remarks

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

    See Also