Thanks Igor, Dave and Teun!
I was missing the call to srand48(0); that "unlocked"
both drand48 and erand48. My code (at least the random
number part) is now working.
In case anyone else is trying to do something similar
a working snippet is below.
Thanks to everybody who took time to help!
Rober
Thanks for the prompt reply!
At 12:55 PM 11/12/2004 -0500, you wrote:
>If you're using C++, why use stdio functions?
The program has some modules from an older C program
and some from a C++ program. I just hadn't converted
all of the code. I left the headers in because in my
finished program I'd
drand48 and erand48 return only 0.0 no matter how many
times I call them. The code works fine on the Linux
computers at school, and the compiler does not report
any errors or warnings.
The mailinglist archives seem to have cases where
these functions are missing entirely or return errors,
but that
3 matches
Mail list logo