Breaking Math.Random to win

I was talking with MasterIO about Yuna, the Discord bot of o!rdr, when I said that I could win big money. Big money in this story means virtual currency from a Discord bot. Sadly I did not buy a house with JavaScript. He told me to “win against Math.random”. So I did what any reasonable person would do. I googled how to break Math.random. JavaScript moment Math.random() is not magic. It does not call the universe and ask it politely for a number. It is pseudo-random, which means that it uses an internal state to generate numbers that look random enough for most things. ...

March 3, 2025 · 7 min