@emile/engine / math/random / bellWeightedRandomFloat
Function: bellWeightedRandomFloat()
bellWeightedRandomFloat(
min,max,dice):number
Defined in: src/math/random.ts:20
Generates a random number between min and max, with an approximate bell curve distribution.
Parameters
min
number
The minimum value (inclusive).
max
number
The maximum value (exclusive).
dice
number = 20
The number of dice to roll, this is the accuracy of the bell curve distribution.
Returns
number
The random number.