Share via


Random.nextInt Method

Definition

Returns the next random number from the random generator.

public:
 virtual int nextInt();
public virtual int nextInt ();
abstract member nextInt : unit -> int
override this.nextInt : unit -> int
Public Overridable Function nextInt () As Integer

Returns

The next random integer number from the random generator.

Remarks

The value will be in the range from 0 to 32767 (0x7FFF).

Applies to