Skip to content

@dice-roller/rpg-dice-roller / dice / fudgeDie

Function: fudgeDie() ​

fudgeDie(nonBlanks?): FacesDieDefinition

Defined in: src/dice/presets.ts:107

A fudge / fate die. Registered in the DieRegistry as fudge.

  • fudgeDie(2) (the default, dF): [-1, 0, 1], equally likely; equivalent in probability to two physical faces of each value, but its face count is 3
  • fudgeDie(1) (dF.1): [-1, 0, 0, 0, 0, 1], with face count 6

Each variant is a shared, frozen definition.

Parameters ​

nonBlanks? ​

FudgeNonBlanks = 2

Returns ​

FacesDieDefinition

Throws ​

nonBlanks isn't 1 or 2

MIT Licensed · Credits