This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Random Number Generator
- From: Emil Block <blime at his dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 02 Aug 2002 12:47:07 -0400
- Subject: Random Number Generator
- Organization: Blime Incorporated
Does anyone know why a call to RAND with G77 returns a different value
than a call to RAND with F77 using the same seed? The computer is a SUN
Sparc with OS 2.7. The same code is compiled in one case with G77 and in
the other case with F77.
G77 rand (iseed) returns 0.563463211
F77 rand (iseed) returns 0.843506
where iseed = 1375.
Emil Block