Apps / Modulo Bias Microscope

Modulo Bias Microscope

Paste a random sampling function and see exactly how biased it is.

Open Modulo Bias Microscope ↗ Want one like this?

What it does

Shows students exactly how a common random-number shortcut quietly favors some results. Paste a small JavaScript function that turns random bits into, say, a dice roll or a card shuffle, and it works out the exact chance of every outcome (43 in 256 versus 42 in 256 for a popular dice trick), or runs a statistical test when exact counting would take too long. A gallery of seven classic bugs with fixes and a shuffle heat map are built in, and instructors can share auto-graded exercises as links.

Good to know

It only reads JavaScript, and large shuffles get a statistical test instead of exact answers.

More for developers

ACR Draft

Write the accessibility report (VPAT) a university asks for before it buys your software: scans plus a guided review, exported to Word.

DevelopersSmall businesses Open ↗

Net Units

Measure how much code a change adds in syntax-level units instead of lines.

Developers Open ↗