Table of Contents

Method Range

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Range(int)

Generates a Random integer between 0 inclusive and the given max, exclusive.

public static int Range(int max)

Parameters

max int

Returns

int

Range(int, int)

Generates a Random integer between the given min inclusive and the given max, exclusive.

public static int Range(int min, int max)

Parameters

min int
max int

Returns

int

Range(float)

Generates a Random float between 0.0f inclusive and the given max

public static float Range(float max)

Parameters

max float

Returns

float

Range(float, float)

Generates a Random float between the given min inclusive and the given max, exclusive.

public static float Range(float min, float max)

Parameters

min float
max float

Returns

float