Skip to main content
Free Virtual Larch Markers · Zero Cash Value
Open Wallet 16,000 LM
Thaw Permit (105m) Sign In Join Loft
NOTE 03 · Fairness · 6 min read

Inside the Browser CSPRNG: Why We Never Use Math.random() on Our Reels

Published 19 March 2026 by the Glenmore Pine Editorial Loft (Birmingham, UK).

A transparent look at window.crypto.getRandomValues(), rejection sampling, and why cosmetic Keeper Ranks never touch reel odds.


Even in a 100% free virtual world where Larch Markers carry zero monetary worth, fair and predictable randomness matters. Players quickly sense when outcomes feel scripted or artificially padded. That is why every single reel stop, mystery reveal, cluster drop, and Drift Lantern value inside Glenmore Pine is generated locally in your browser using the Web Crypto API.

Standard JavaScript Math.random() is designed for speed rather than statistical rigor and varies in internal implementation across browsers. Instead, our reel engine requests unsigned 32-bit integers from window.crypto.getRandomValues(). When mapping a 32-bit integer onto a weighted reel strip of length N, naive modulo arithmetic (value % N) introduces a microscopic bias whenever 2^32 is not evenly divisible by N.

To remove even that tiny skew, our generator applies rejection sampling: it computes the largest clean multiple of N below 2^32 and discards any raw draw at or above that ceiling before reading the remainder. Every weighted index on the strip therefore holds its exact mathematical probability on every single spin.

Equally important is what does NOT feed into the generator. Your current Larch Markers balance, whether you are playing on an Open Showcase wallet, a 105-minute Thaw Permit, or a full local account, your recent streak, and your cosmetic Keeper Rank (from Trail Apprentice up to Senior Glen Keeper) are strictly separated from the reel engine. Each round is statistically independent of the last.

Continue Reading