public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Random Number Generator
@ 2002-08-02  9:48 Emil Block
  2002-08-02 13:00 ` Toon Moene
  0 siblings, 1 reply; 4+ messages in thread
From: Emil Block @ 2002-08-02  9:48 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-06 16:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-02  9:48 Random Number Generator Emil Block
2002-08-02 13:00 ` Toon Moene
2002-08-02 14:37   ` Emil Block
2002-08-06  9:02     ` Toon Moene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).