# Random Number from 1-500

**URL:** <https://forum.kirupa.com/t/random-number-from-1-500/94729>\
**Category:** Uncategorized\
**Created:** [November 16, 2003, 1:32am UTC](https://forum.kirupa.com/t/random-number-from-1-500/94729 "2003-11-16T01:32:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soul814](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Soul814](https://forum.kirupa.com/u/Soul814)\
**Post date:** [November 16, 2003, 1:32am UTC](https://forum.kirupa.com/t/random-number-from-1-500/94729/1 "2003-11-16T01:32:39Z")

</div>

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… 😕 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](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…
