Skip to content

Function: isFair() ​

ts
function isFair(spec): boolean;

Defined in: src/dice.ts:324

Whether a roll is of plain fair dice and nothing else: no loaded die, and no custom die either, whose faces are whatever somebody made them. A site that wants only honest standard dice refuses anything this is false for.

Parameters ​

spec ​

RollSpec

Returns ​

boolean

MIT © John Morris