Skip to content

d6

const d6: (count?) => number

Defined in: src/dice.ts:145

A six-sided die, or count of them summed.

d4 through d100 are the same shape; reach for dice when the notation comes from data rather than from your own code.

number

number

d6(); // 4
d6(3); // 11, the sum of three