Skip to content

Function: luckOf() ​

ts
function luckOf(spec, total): number;

Defined in: src/odds.ts:518

How lucky a total was, from 0 (the worst the dice can do) to 1 (the best): the share of rolls it beats, counting a tie as half. A 7 on 2d6 is 0.5.

Parameters ​

spec ​

Odds

total ​

number

Returns ​

number

MIT © John Morris