Log in

View Full Version : Linux g++ question


MoonWalker
13th April 2003, 22:37
I have a prog in C++ compatible with the g++ compiler in Linux. There is a fuction in that, drand48().. What exaclty does it do and is there a similar function in VC++ 6 that I can use instead of drand48()??...

Thanks in advance,
MoonWalker

int 21h
13th April 2003, 22:49
#define drand48() (((double)rand())/((double)RAND_MAX))

MoonWalker
14th April 2003, 13:19
Thanks :)

MoonWalker