A dumb question: How to use drand48()?

Daniel Yeh wyeh at goofy.eng.clemson.edu
Thu Dec 13 18:41:03 AEST 1990



Hi there,

I am writing my first C program to do some simulations. The problem is that
I have no idea of using the library function drand48(). I guess I'll have
to initialize the seed before invoking drand48(), but how? Also, do I need
to pass the seed to drand48() whenever I invoke it? Would anyone out there
tell me exactly what I should do with this random number generator?

Thanks in advance!

Daniel
wyeh at eng.clemson.edu



More information about the Comp.lang.c mailing list