logoalt Hacker News

steve_adams_86 • today at 7:17 PM • 1 reply • view on HN

Rather than attempt to be random, knowing that I'm not, I wanted to see how well it can predict Math.random:

    setInterval(() => {
      const num = Math.round(Math.random() * 10);
      const ball = document.querySelector(`.typed-pad .ball-${num}`);
      if (ball) {
        ball.click();
      }
    }, 1000);
This isn't very interesting, but it scratched an itch I had to see what would happen.

    The house's record

    The house called 18 of your 190 scored numbers: 9%.

    Blind guessing would average about 21.1 of them (11%).

    Only 1 of the 206 people in a psychology study was more random than you. The house found you extremely hard to read.
I really want to know who was more random than a RNG

Replies

tyre • today at 7:23 PM

It might not be that someone is more random than an RNG, but that the distribution of numbers in your 190 vs. theirs appears more "random". It's a limited sample size.

If yours happened to contain consecutive digits or common ones (ending in zero, significant numbers like 911 or 42 or 69), that would imply less randomness even if it's actually the result of "real" RNG.