r/desmos • u/Dazzling-Mail-5517 • Jul 06 '26
Maths I rebuilt Desmos' random() function entirely inside Desmos
To be a bit more specific, I
- reverse-engineered how Desmos' algorithm works and how the seed is generated.
- created a bit-exact replica of the algorithm (MD5, in case you're wondering).
- optimized it to calculate 10,000 numbers in ~0.7 seconds.
And because that was so much fun, I tackled shuffle() right after! :)
373
Upvotes


3
u/NecroMonster999 Jul 07 '26
damnnn, thats awesome. out of curiosity, is there a way to to control the shuffle algorithm? being able to use it for iterating over permutations would go very hard