Random.Next Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a random integer.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodNext()

Returns a non-negative random integer.

System_CAPS_pubmethodNext(Int32)

Returns a non-negative random integer that is less than the specified maximum.

System_CAPS_pubmethodNext(Int32, Int32)

Returns a random integer that is within a specified range.

Return to top
Show: