Rng Members
The Rng type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
DiceRoll |
Returns a dice roll of (num)d(sides)
|
![]() |
DiceRollMax |
Returns the maximum value of a dice roll of (num)d(sides)
|
![]() |
DieRoll |
Returns a random number greater or equal to one and less than or equal to max
|
![]() |
PercentileRoll |
Returns a die roll based on a percentage change
|
![]() |
RandomBetween |
Returns a random number greater than or equal to min and less than or equal to max
|
![]() |
RandomLessThan |
Returns a random number greater or equal to zero and less than max
|
![]() |
RandomNormal |
Returns an integer based on a normal distribution
|
![]() |
RandomSpread |
Returns a random number with a flat distrubution around centre and within width of it
|
Fields
Name | Description | |
---|---|---|
![]() |
UseFixed |
Set true to use the fixed seed, and false to use the generic randomiser
|