Summary
Returns a random integer that is within a specified range.
Syntax
public static long Next(long min, long max)
Parameters
| Name |
Type |
Description |
| min |
long |
The inclusive lower bound of the random number returned. |
| max |
long |
The exclusive upper bound of the random number returned. max must
be greater than or equal to min.
|
Return Value
| Type |
Description |
| long |
A 64-bit signed integer greater than or equal to min and less than
max; that is, the range of return values includes
min but not max. If min
equals max, min is returned.
|
See Also