Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!hacker!steve From: steve@hacker.UUCP (Stephen M. Youndt) Newsgroups: comp.unix.i386 Subject: Random numbers problem under Bell Tech. Keywords: Floating exception - core dumped, drand48, srand48 Message-ID: <188@hacker.UUCP> Date: 24 Mar 90 15:02:14 GMT Organization: H.a.L. Systems, Burke, VA Lines: 21 Simply put, I compile this: --- main() { int i; srand48(7769); for (i=0; i<20; i++) printf("%g \n", drand48()); } --- run it, get several numbers near to 0 (Ex: 8.32456E-315) then get: --- Floating exception - core dumped --- This is on Bell Tech SV3.2u with the BT S/W Dev Platform. What the hell am I doing wrong, and how do I fix it. Please mail answers directly to me. Thanks in advance. -- SMY -- Stephen M. Youndt | "By the time that we realize that ignorance "Hacker at Large" | truely is bliss, it's already too late" -- ME