Export (0) Print
Expand All

Random.Next Method

Returns a random integer.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Next() Returns a non-negative random integer.
Public method Next(Int32) Returns a non-negative random integer that is less than the specified maximum.
Public method Next(Int32, Int32) Returns a random integer that is within a specified range.
Top
Show:
© 2014 Microsoft