Hamumu Forum
>
General
>
Making Dumb Games
> C++ rand()
PDA
View Full Version :
C++ rand()
pizza
12-14-2005, 06:35 AM
How can I get a random number 0-170?
(It's easy to get a number 1-10 :arrow: rand() % 10 + 1)
Hammered
12-14-2005, 07:20 AM
To get a random number 0-170, use
rand() % 171
pizza
12-14-2005, 07:45 AM
Really? Gee, thanks!
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.