|
-
Mar 16th, 2001, 12:24 PM
#1
Could someone change this to C++ for me thanks.
Code:
Randomize
number = CInt(49 * Rnd())
-
Mar 16th, 2001, 01:09 PM
#2
Frenzied Member
This should do...
Code:
#include <time.h>
int number;
srand( (unsigned)time( NULL ) ); // Setup the random number routine
number=rand() % 9; // Create random number between 0 and 9
-
Mar 16th, 2001, 03:09 PM
#3
Thanks that was exactly what i was looking for.
-
Mar 17th, 2001, 04:11 AM
#4
Frenzied Member
Glad to hear!
-
Mar 17th, 2001, 04:11 PM
#5
Frenzied Member
Also....
www.softseek.com - Programming section has converters for this kinda stuff
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
|