Rng..::..RandomSpread Method

Returns a random number with a flat distrubution around centre and within width of it

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

Syntax


public int RandomSpread(
	int centre,
	int width
)

Parameters

centre
Type: Int32
The central value
width
Type: Int32
The maximum distance (inclusive) from the centre

Return Value

A random number