Random numbers in Javascript are stupid.
It’s hard to get Javascript to give you the kind of random numbers that you want. A while ago, I struggled with this issue myself and this blog gave me enough information to get my project completed. Thank you Andrew Penry for the great article on Javascript Math.random()
Recently the Web Cash blog wrote an article about random numbers in Javascript. Both articles are similar and I bet they would have fun arguing about why each added their digit in a different order of operation.
After reading both of those articles, you should be able to use random Javascript numbers in any project, however, the overachievers at Web Cash decided to take it one step further and stop the conversation for everyone by creating a helper function that everyone could use in any project where random numbers are necessary. If you need a random number, read Javascript Function: Random Number Generator, I would recommend you use it in your next project.
My dog Howie just farted, so i’ll have to leave the room, but I promise that I’ll finish Ajax Fast and Easy part three tomorrow.