Re: [Dev-C++] Random numbers with MS Visual C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Kevin W. <ke...@me...> - 2001-11-04 20:06:06
|
Hello everyone,
I think the Borland random function is not standard.
Try this instead:
#include <stdlib.h>
int rand(void);
// Random number generator.
// rand returns successive pseudorandom numbers in the
// range from 0 to RAND_MAX.
// The symbolic constant RAND_MAX is defined in stdlib.h.
// rand returns the generated pseudorandom number.
void srand(unsigned seed);
// Initializes the random number generator.
By the way, I don't think much of that font!
Regards,
Kevin.
|