Next Method
Collapse the table of content
Expand the table of content

Random.Next Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a random number.

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

  NameDescription
Public method Next() Returns a nonnegative random number.
Public method Next(Int32) Returns a nonnegative random number less than the specified maximum.
Public method Next(Int32, Int32) Returns a random number within a specified range.
Top

Show:
© 2017 Microsoft