|
-
Dec 10th, 2000, 06:45 PM
#1
Thread Starter
PowerPoster
Does anyone know how to generate a random number in C++? I looked on Planet-Source-Code for some code, but the shortest was like 40 lines. I just want to get a random integer between 1 and 100. Now I realize why I use VB more that C++. The code should be no more than 20 lines of code, and even that is extreme for this simple project.
Thanks for any help.
PS I am a C++ Newbie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|