Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!emory!hubcap!goofy.eng.clemson.edu!wyeh From: wyeh@goofy.eng.clemson.edu (Daniel Yeh) Newsgroups: comp.lang.c Subject: A dumb question: How to use drand48()? Message-ID: <12231@hubcap.clemson.edu> Date: 13 Dec 90 07:41:03 GMT Sender: news@hubcap.clemson.edu Reply-To: wyeh@goofy.eng.clemson.edu (Daniel Yeh) Distribution: usa Organization: Clemson University Engineering Department Lines: 14 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@eng.clemson.edu