How does #javascript’s Math.random() generate random numbers ?

▻https://hackernoon.com/how-does-javascripts-math-random-generate-random-numbers-ef0de6a20131?so

Open up your dev tools’ (Mac: cmd + option + i / Windows: ctrl + shift + i), go to the Console, type Math.random() , and hit return.Bam. You get a random number.I got 0.6199322557631561.I’ve always wondered where on earth these numbers come from. And, more importantly, how can they possibly be random? After all, don’t computers just take in some input, swirl it around with some math, and then spit it back out? Seems like a pretty predictable process. So what happens when you want to generate a ‘random’ number? How does that even work and what’s happening behind the scenes?For starters, it’s not really randomSurprise surprise, the answer is that Math.random() doesn’t really generate a random number. Not exactly. It just does a really good job of simulating randomness.Algorithmic random number (...)