Table of Contents

Method Next

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Next()

Gets the next random non-negative integer value.

int Next()

Returns

int

A random non-negative integer.

Next(int)

Gets the next random integer value below the given maximum.

int Next(int maxValue)

Parameters

maxValue int

The exclusive upper bound.

Returns

int

A random integer in [0, maxValue).

Next(int, int)

Gets the next random integer value greater than or equal to the minimum and below the given maximum.

int Next(int minValue, int maxValue)

Parameters

minValue int

The inclusive lower bound.

maxValue int

The exclusive upper bound.

Returns

int

A random integer in [minValue, maxValue).