Rng..::..RandomLessThan Method

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

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

Syntax


public int RandomLessThan(
	int max
)

Parameters

max
Type: Int32
The upper limit (exclusive)

Return Value

A random number