Click to See Complete Forum and Search --> : VB to C++
ChimpFace9000
Mar 16th, 2001, 11:24 AM
Could someone change this to C++ for me thanks.
Randomize
number = CInt(49 * Rnd())
CyberCarsten
Mar 16th, 2001, 12:09 PM
This should do...
#include <time.h>
int number;
srand( (unsigned)time( NULL ) ); // Setup the random number routine
number=rand() % 9; // Create random number between 0 and 9
Thanks that was exactly what i was looking for.
CyberCarsten
Mar 17th, 2001, 03:11 AM
Glad to hear! :)
PsyVision
Mar 17th, 2001, 03:11 PM
Also....
www.softseek.com - Programming section has converters for this kinda stuff :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.