From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16496 invoked by alias); 2 Aug 2002 16:48:39 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16488 invoked from network); 2 Aug 2002 16:48:38 -0000 Received: from unknown (HELO smtp-3.his.com) (216.194.225.86) by sources.redhat.com with SMTP; 2 Aug 2002 16:48:38 -0000 Received: from mail.his.com (root@mail.his.com [216.194.225.77]) by smtp-3.his.com (8.12.3/8.12.3) with ESMTP id g72GmbIb076688 for ; Fri, 2 Aug 2002 12:48:37 -0400 (EDT) (envelope-from blime@his.com) Received: from his.com (max1k-75.his.com [216.194.203.75]) by mail.his.com (8.11.6/8.10.1) with ESMTP id g72GmZB06649 for ; Fri, 2 Aug 2002 12:48:36 -0400 (EDT) Message-ID: <3D4AB78B.B9163FC4@his.com> Date: Fri, 02 Aug 2002 09:48:00 -0000 From: Emil Block Organization: Blime Incorporated X-Accept-Language: en MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Random Number Generator Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00013.txt.bz2 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