Thanks,
Shuchi
To generate a random *float* between 0.0 and 9.999999, use
Math.random() * 10.
To generate a random *integer* between 0 and 9, use
Math.floor(Math.random() * 10).
For a full explanation of how this works, check out this explanation:
http://www.shawnolson.net/a/789/make-javascript-mathrandom-useful.html
Now, can you see how to generate numbers between 0 & 99 as well?
Finally, can you write a function that takes in a "max" parameter, and
then generates a number between 0 & max?
Hope this helps!
Troy
PS. No need to apologize. We're more than happy to help answer your
questions!