|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Game Programming: Help with textbased RPG in C++
------------------------------------------------------------ GameProgrammer.Com: Game Programming: Help with textbased RPG in C++ ------------------------------------------------------------ By Ender Wiggin on Sunday, May 7, 2000 - 12:06 pm: The rand() function may be what you're looking for if you need a random number generator. It returns a number between 0 and RAND_MAX (a constant). The random(number) function returns an integer between 0 and number-1. You can do the same thing by entering in rand()%number. Hope this helps. -Ender Wiggin ------------------------------------------------------------ DO NOT REPLY TO THIS MESSAGE! It is an automatic e-mail notification message from the discussion board indicating that a new message was posted. If you do not wish to receive further e-mail notification messages from this discussion board, edit your user or moderator profile to turn off the e-mail notification option. Use this link to go directly to the discussion: http://gameprogrammer.com/cgi-bin/comm/gameprogrammer/discus/show.pl?6/24
|
|