Skip to main content
All docs
V24.2

NonCryptographicRandom.Next(Int32, Int32) Method

Returns a random integer within the specified range.

Namespace: DevExpress.Data.Utils

Assembly: DevExpress.Data.v24.2.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