Rng..::..DieRoll Method

Returns a random number greater or equal to one and less than or equal to max

Namespace:  AngbandOS.Core
Assembly:  AngbandOS.Core (in AngbandOS.Core.dll)

Syntax


public int DieRoll(
	int max
)

Parameters

max
Type: Int32
The upper limit (inclusive)

Return Value

A random number