Skip to content

Function: distributionHolding() ​

ts
function distributionHolding(
   spec, 
   faces, 
   held
): Distribution;

Defined in: src/odds.ts:414

The odds of a roll with some of its dice held: the held faces are settled, and only the rest are still to be thrown. held[i] is whether face i is held. With every die held there is one total, and it is certain. A RangeError for dice that cannot be held (canHold).

Parameters ​

spec ​

RollSpec

faces ​

readonly number[]

held ​

readonly boolean[]

Returns ​

Distribution

MIT © John Morris