d6
constd6: (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.
Parameters
Section titled “Parameters”count?
Section titled “count?”number
Returns
Section titled “Returns”number
Example
Section titled “Example”d6(); // 4d6(3); // 11, the sum of three