Rng Members

The Rng type exposes the following members.

Methods


  Name Description
Public method DiceRoll
Returns a dice roll of (num)d(sides)
Public method DiceRollMax
Returns the maximum value of a dice roll of (num)d(sides)
Public method DieRoll
Returns a random number greater or equal to one and less than or equal to max
Public method PercentileRoll
Returns a die roll based on a percentage change
Public method RandomBetween
Returns a random number greater than or equal to min and less than or equal to max
Public method RandomLessThan
Returns a random number greater or equal to zero and less than max
Public method RandomNormal
Returns an integer based on a normal distribution
Public method RandomSpread
Returns a random number with a flat distrubution around centre and within width of it

Fields


  Name Description
Public field UseFixed
Set true to use the fixed seed, and false to use the generic randomiser

Properties


  Name Description
Public property FixedSeed