RandomNumber.

Next(int, int) Method

Summary

Returns a random integer that is within a specified range.
Namespace
Faker
Containing Type
RandomNumber

Syntax

public static int Next(int minValue, int maxValue)

Parameters

Name Type Description
minValue int The inclusive lower bound of the random number returned.
maxValue int The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.

Return Value

Type Description
int A 32-bit signed integer greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not maxValue. If minValue equals maxValue, minValue is returned.

See Also

  • System.Random.Next(System.Int32,System.Int32)
GitHub