Skip to content

Function: faceStats() ​

ts
function faceStats(history, kind): FaceStats;

Defined in: src/stats.ts:211

How often each face of one kind of die came up in a history, with a chi-square test of whether that looks fair. kind is a number of sides (or "F"), which counts the fair dice of that size and no loaded or custom one; or a group, which counts exactly that die. A numbered die, loaded or not, is tested against the fair die of its size; a custom die against its faces as written.

Parameters ​

history ​

readonly Roll[]

kind ​

| Sides | DiceGroup

Returns ​

FaceStats

MIT © John Morris