Share via


Random.Next Method ()

Returns a nonnegative random number less than Int32.MaxValue.

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

Syntax

[MethodImplAttribute(InternalCall)]
public virtual int Next ()

Return Value

A 32-bit signed integer greater than or equal to zero and less than Int32.MaxValue.

Version Information

Available in the .NET Micro Framework version 4.1 and 4.2.

See Also

Reference

Random Class
Random Members
System Namespace