Mail Archives: djgpp/1997/08/28/13:36:46
Shane Crowe (shanec AT nortel DOT com) writes:
> Our GNU C compiler setup for Unix has support for drand48 and
> srand48 functions. The 48 is for 48-bit math. Does this exist
> for djgpp? If so, where? This would make porting stuff over to
> DOS easier.
I don't think so. But djgpp has long long, a 64 bit type. Try this:
long long foo;
srand(time(NULL));
foo=(rand()<<16)+rand();
Will that do the job?
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -