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

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

    Namespace: DevExpress.Data.Utils.Security

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public static int Next(
        int maxExclusive
    )

    Parameters

    Name Type Description
    maxExclusive Int32

    The exclusive upper bound of the random number to be generated. maxExclusive 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 maxExclusive.

    See Also