Randomizing Javascript - What can randomization be used for in Javascript/jQuery?
Javascript provides Math.floor and Math.random methods that can be used together to return random numbers. The jQuery library is a Javascript library designed to simplify client-side web page development.
Building the random number generator - Using the following line to return a random number: Math.floor((Math.random() * 100000000) + 1); Building further randomization into the random number generator - To further randomize, you can use power law distribution. Random number generator using the following line code: Math.round(Math.exp(Math.random()*Math.log(10000000-0+1)))+0; Demo includes way to create a random quote generator and random image loader