News for hackers. Stuff that matters.
Re:How random can you be? by florian_s on Friday March 08, 2019 @10:05AM (#19338076)
I tried:

  let left = () => captureBtnLeftFunc($.Event())
  let right = () => captureBtnRightFunc($.Event())
  () => captureBtnRightFunc($.Event())
    setInterval(() => {
      console.log("Guessing");
      if (Math.random() < 0.5) {
          left()
      } else {
          right()
      }
  }, 1000)
Re:How random can you be? by paulirish on Friday March 08, 2019 @10:56AM (#19338647)
The third line is a mispaste btw. You can delete it. ;)

Running this myself, the guesser is correct 46% of the time after 100 iterations.

Re:How random can you be? by Jernik on Friday March 08, 2019 @10:55AM (#19338639)
What was the result? 50%?
Re:How random can you be? by florian_s on Saturday March 09, 2019 @06:01AM (#19345608)
Yes, when running over many iterations