Auditable Tarot Shuffling with Rejection Sampling and SHA-256 SealsAuditable Tarot Shuffling with Rejection Sampling and SHA-256 Seals
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
A tarot shuffle that cheats a little
Most code that shuffles a deck picks a random number and takes the remainder, something like random % 78. It looks fair, and it isn't quite. A random byte has 256 possible values, and 256 doesn't divide evenly by 78. The remainder is 22, so on that draw the first 22 positions get four chances in 256 while every other position gets three. Nobody would notice that in a single reading. I would know, though.
So the shuffle on Numenist throws those draws away. If a number lands in the leftover range that would tilt the odds, it gets discarded and drawn again; about nine times in ten, the first draw is already clean. Every swap pulls fresh randomness from the operating system, the finished deck is checked so no card is missing or doubled, and the spread gets a 16-character seal, a SHA-256 hash of the moment, the cards, and the random bytes that produced them. It's printed under every spread.
Is that overkill for tarot? Maybe. But when someone brings a real question to the cards, the cards they get should be the ones chance gave them.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started