PDA

View Full Version : Randomizing Numbers


Lippy
03-21-2005, 04:44 PM
How do I randomize a number in C in the range of 0 to 1000 or something along those lines?

Thanks alot for the help!
Lippy

cfc
03-21-2005, 05:09 PM
I found something you might find useful:
Scaling Random Numbers Down (http://cplus.about.com/od/cprogrammingtips/l/aa041403c.htm)

HTH

Lippy
03-21-2005, 05:18 PM
Hey thanks alot
thats exactly what I needed

Lippy