I thought I might contribute something, I dont know if there have been any threads about this before, but I have made a really good formula for generating random numbers. Simple to use for noobs too.

```
HIGH = 10;
LOW = 1;
(Math.ceil(Math.random() * 100) % (HIGH - LOW + 1)) + LOW
```

make HIGH equal the highest random number you want generated and make LOW equal the lowest. The only part of this that takes any thinking is knowing what to multipy Math.random() by. This depends on the range of your desired random numbers. If you want numbers less than 100 multiply it by 100, if you want numbers less than 1000, multiply it by 1000. Most of us here should be able to figure this outâ€¦