Random numbers problem under Bell Tech.
Stephen M. Youndt
steve at hacker.UUCP
Sun Mar 25 01:02:14 AEST 1990
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
More information about the Comp.unix.i386
mailing list