Skip to content

Function: spreadMath() ​

ts
function spreadMath(node, leaves): Map<number, number>;

Defined in: src/math.ts:249

The odds of a formula: the chance of each whole number it can come to, given the chance of each total of each kind of dice. Exact in its arithmetic, because the kinds share no dice and each is named once.

Parameters ​

node ​

MathNode

leaves ​

readonly Map<number, number>[]

Returns ​

Map<number, number>

MIT © John Morris