delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/06/04:00:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <002d01bfe71f$1d832680$0a00a8c0@bellview>
From: "Federico Spinazzi" <spinazzi AT databankgroup DOT it>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: R: Random no. problem
Date: Thu, 6 Jul 2000 08:52:21 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

you can look at:

http://lib-www.lanl.gov/numerical/bookc.html

Regards.
FS

-----Messaggio originale-----
Da: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
A: saurabh deshpande <saurabhd AT andrew DOT cmu DOT edu>
Cc: cygwin AT sourceware DOT cygnus DOT com <cygwin AT sourceware DOT cygnus DOT com>
Data: mercoledì 5 luglio 2000 19.29
Oggetto: Re: Random no. problem


>
>
>saurabh deshpande wrote:
>>
>
>> When compiled on Sun Solaris or SGI Irix 6.4 using gcc compier i get
16838.
>> When compiled on Windows NT 4 using Cygnus gcc compiler i get 1103527590.
>> Is there a way i can get the same random numbers on Windows NT 4 and
>> Sun/SGI ?
>>
>
>Not easily. You cannot depend on separate implementations of random
>number generators to give the same results. The only way to get what you
>seem to want (a repeatable pseudo-random sequence on multiple
>architectures) is to roll your own random number generator routine, and
>seed it with the same seed on each architecture. See (for instance)
>"Numerical Recipes in C" or something similar, for relatively decent
>RNGs.
>
>In any case, this is more of a cross-platform, C programming issue, and
>not really a cygwin-specific issue, so you should probably find another
>list to discuss this topic.
>
>--Chuck
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019