Made a simple coin flipper in JS that started off as a simple toss, but then turned into a multi-flipper which allows user to choose how many coin tosses, see how many heads and tails and also view the longest consecutive streak of either heads of tails.
Via this project I found that JS, namely Math.Random(), isn’t totally random as Random.org informs me that “they are generated in a predictable fashion using a mathematical formula”. Random.org uses atmospheric noise to generate a random number, which is apparently much better then algorithms typically used in computer programs. How this is translated into a number is another matter!
The following flips 10,000 coins and gives the data…
Worthy of Note is a site aimed at Web Designers & Developers. It offers a wide range of resources to help assist anyone in the web industry.View