Random Number from 1-500

how do you do a random number from 1-500?

math.round(math.random(1)*10); <-- that only goes from 0-10 lol…

i tried loops and stuff but it didnt work out… :confused: i also tried adding a buncha math.randoms but the number was always pretty high…

im using it for this
http://www.toon-network.com/first.html
click on the wack-a-mole title… thatz where im using the random thing… but half the time its off the screen since i used exponents…