Statistics
Bars: rolls per face. Gold line: the count a fair die gives on average, n/k. Band: where about 95% of fair bars land. The chi-square test sums (O − E)²/E over the faces; a p-value under 0.01 would point to a biased die (or bad luck, once in a hundred tests).
Bars: the share of each total in the session (and the batch). Gold: the exact distribution, the convolution of the dice. Dashed: the normal curve with the same mean and variance. Add dice and the sum takes the bell shape (the central limit theorem).
A d20 check
Advantage keeps the higher of two d20: P(≥ x) = 1 − ((x − 1)/20)². Disadvantage keeps the lower: ((21 − x)/20)². 4d6 drop lowest has a mean of 12.24, against 10.5 for 3d6.
Batch
The batch runs the same Rapier physics with no rendering, in a worker, as fast as it can. Cocked dice are thrown again; nothing is drawn from a random-number shortcut.