From: Fabrice ILPONSE Newsgroups: comp.os.msdos.djgpp Subject: Re: real random numbers Date: Mon, 23 Mar 1998 17:28:48 +0100 Organization: Universites Paris VI/Paris VII - France Lines: 117 Message-ID: <35168DC0.A4BACBE7@asim.lip6.fr> References: <351634A2 DOT 5ACD AT hol DOT fr> <6f60sa$8nt7 AT beaker DOT nit DOT gwu DOT edu> NNTP-Posting-Host: asim.lip6.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------09B4BC806C45E69D1D6BF896" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk --------------09B4BC806C45E69D1D6BF896 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Umberto Michelucci wrote: > Hi, > the question is well answered in the book "Numerical Recipes in C", where > an entire chapter is devoted to the random numbers. You can fins a > postscript version of the book at the address > > http://cfatab.harvard.edu/nr/bookc.html > > The way is not DJGPP dependant. Have a look there, They will answer all > your question. The answer is not really easy, so if you find difficulties > just send me an e-mail. > > Umberto Michelucci > I'm doing float numbers like that: float e=((float)rand()/1000) for 1E-3 precision > ============================================================================= > Umberto Michelucci Phone : (202)-994-0133 > Department of Physics Fax : (202)-994-3001 > 725 21st Street E-mail: umich AT gwis2 DOT circ DOT gwu DOT edu > The George Washington University WWW : http://gwis2.circ.gwu.edu/~umich > Washington, D.C., 20052 USA > ============================================================================= > > Guillaume BETOUS > (g DOT betous AT hol DOT fr) wrote: > : If anyone could tell me how to get REAL random generated numbers under > : djgpp ... > : Thanxxx > > : Guillaume > > : g DOT betous AT writeme DOT com -- ^ ^ ^ | | | +-+-+ Fabrice ILPONSE | email: fabrice AT asim DOT lip6 DOT fr | | - --------------09B4BC806C45E69D1D6BF896 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Umberto Michelucci wrote:
Hi,
the question is well answered in the book "Numerical Recipes in C", where
an entire chapter is devoted to the random numbers. You can fins a
postscript version of the book at the address

        http://cfatab.harvard.edu/nr/bookc.html

The way is not DJGPP dependant. Have a look there, They will answer all
your question. The answer is not really easy, so if you find difficulties
just send me an e-mail.

                        Umberto Michelucci
 

    I'm doing float numbers like that:        float e=((float)rand()/1000) for 1E-3 precision
 

=============================================================================
Umberto Michelucci                 Phone : (202)-994-0133
Department of Physics              Fax   : (202)-994-3001
725 21st Street                    E-mail: umich AT gwis2 DOT circ DOT gwu DOT edu
The George Washington University   WWW   : http://gwis2.circ.gwu.edu/~umich
Washington, D.C., 20052 USA
=============================================================================

 Guillaume BETOUS
(g DOT betous AT hol DOT fr) wrote:
: If anyone could tell me how to get REAL random generated numbers under
: djgpp ...
: Thanxxx

: Guillaume

: g DOT betous AT writeme DOT com

 
-- 
        ^ ^ ^
        | | |
        +-+-+   Fabrice ILPONSE
          |     email: fabrice AT asim DOT lip6 DOT fr
          |
          |
          -
  --------------09B4BC806C45E69D1D6BF896--