Skip to content

Function: exactCounts() ​

ts
function exactCounts(spec): ExactCounts | null;

Defined in: src/odds.ts:304

The odds as exact whole numbers, for the dice that have them: plain dice added up, one die kept from a pool (advantage), loaded and custom dice the same way (their weights are whole numbers, so their odds are exact fractions), and several such kinds added together while that stays quick. Null for rerolled or exploding dice, for several dice kept, and for large mixed pools, whose odds are worked out as probabilities; distributionOf answers for every roll.

Parameters ​

spec ​

RollSpec

Returns ​

ExactCounts | null

MIT © John Morris