Mail Archives: djgpp/1997/09/12/19:48:51
J.E. wrote:
> I was just wondering: How do you create a random number in Djgpp? I
> tried setting a value for RAND_MAX and then going c = rand(), but that
> didn't work (it said that the value for RAND_MAX, which was 2, was
> invalid. Any help would be appreciated.
> Jordan Ellis <cellis AT voyageur DOT ca>
Random numbers is actually a complicated topic. But if you want
some C code that you can cut and paste ... code that doesn't
depend on the library rand() function ... take a look at
http://www.evgr.com/poker.
Dick Taylor
- Raw text -