Provably Fair & Configurable Random Number Studio
Zero EgressZero-egress client-side randomness studio. SHA-256 / HMAC-SHA256 provably fair commit-reveal scheme, uniform & Box-Muller Gaussian normal distributions, tabletop polyhedral dice roller, Fisher-Yates list shuffler, EFF Diceware passphrases, UUID v4/v7 tokens, and real-time Chi-Square & Shannon entropy statistical audit.
How Provably Fair Verification Works (Cryptographic Guarantee)
1. Pre-Commitment: Privatools generates a 256-bit secret and publishes its SHA-256 hash before you roll. This commits the seed without revealing it.
2. Client Input: You provide your own client seed and an incrementing nonce. Privatools cannot predict or alter your roll because the outcome is derived from HMAC-SHA256(ServerSeed, ClientSeed:Nonce).
3. Post-Roll Audit: Reveal the secret seed at any time to verify that the pre-commitment hash was never changed and that every roll was mathematically deterministic.
Server Seed & Pre-Commitment
Generating hash...••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••Roll Parameters
Roll History & Audit Ledger (0)
Independent 3rd-Party Verifier
Input any revealed server seed, client seed, nonce, and commitment hash to independently recompute the cryptographic HMAC and derived outcome.
Provably Fair & Cryptographic Random Number Studio
Generate cryptographically secure random numbers, Diceware passphrases, UUIDs (v4 & v7), and Gaussian distributions. Audit randomness with NIST-style statistical tests, and roll verifiably provably fair numbers using SHA-256 HMAC commitments.
How Client-Side Processing Works
Every step executes within your browser runtime without network calls or cloud storage.
- 1Hardware randomness is gathered from the OS kernel via window.crypto.getRandomValues.
- 2The provably fair protocol hashes a 256-bit server seed into a commitment, combines it with a client seed and nonce, and produces verifiable rolls via HMAC-SHA256.
- 3Gaussian random values are generated via the Box-Muller transformation using cryptographic uniform floats.
- 4Statistical test suites evaluate Shannon entropy, chi-square distribution uniformity, and run frequency in real time.
Common Workflows & Use Cases
Run verifiably fair giveaways, contests, and game mechanics where participants can verify their roll was not manipulated after the fact.
Generate memorable, cryptographically secure multi-word passphrases with exact entropy calculation for password managers and master keys.
Generate time-ordered UUID v7 tokens for high-performance database primary keys without index fragmentation.
Sample Gaussian distributions and uniform random batches for statistical modeling and engineering simulations.
Frequently Asked Questions
What makes a roll 'Provably Fair'?
A secret seed is generated and its SHA-256 hash is published before the roll (commitment). The outcome is determined mathematically by HMAC-SHA256(ServerSeed, ClientSeed:Nonce). When the roll finishes, the secret seed is revealed so anyone can verify the outcome was not changed.
Is this cryptographically secure?
Yes. All random values are harvested from window.crypto.getRandomValues, which connects to your operating system's cryptographic CSPRNG (/dev/urandom or Windows CryptoAPI). It does not use pseudo-random Math.random().
What is UUID v7 and why should I use it over UUID v4?
UUID v4 is completely random, which causes severe B-tree page splits when used as a database primary key. UUID v7 embeds a Unix millisecond timestamp at the front, creating natural time-ordered indexing while retaining 74 bits of cryptographic uniqueness.
Related Privacy-First Tools
Explore all toolsCryptographic Checksum & File Hash Studio
Compute and verify SHA-256, SHA-512, MD5, CRC32, HMACs, and PBKDF2 keys.
JWT & OAuth Token Debugger
Decode, verify Web Crypto signatures, and inspect OAuth tokens client-side.
Network & Subnet CIDR Studio
IPv4 & IPv6 CIDR subnet calculator, VLSM planner, IP collision detector, and bitmask visualizer.
X.509 Certificate Inspector & Exporter
Inspect SSL/TLS certificates and convert between PEM, DER, and Public Key formats.