Assignment022a
Generating Random Numbers
Random numbers are used to create random quotes, random headers, and
random CSS style sheets among other things. Here's a little program that
creates four random numbers. It uses the Math object to generate a random
number and to remove all decimals (Math.random and Math.floor).
- My first number is a long decimal from 0-1.
- My second number is a long decimal from 0-99.
- My third number is adjusted, we +1 to it. It'll
make the random number from 1 to 100.
- My fourth number rounds off the random number
(makes it a whole number).