www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/23/19:02:16

From: Fabrice ILPONSE <fabrice AT asim DOT lip6 DOT fr>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

--------------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

<HTML>
Umberto Michelucci wrote:
<BLOCKQUOTE TYPE=CITE>Hi,
<BR>the question is well answered in the book "Numerical Recipes in C",
where
<BR>an entire chapter is devoted to the random numbers. You can fins a
<BR>postscript version of the book at the address

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://cfatab.harvard.edu/nr/bookc.html">http://cfatab.harvard.edu/nr/bookc.html</A>

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

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Umberto Michelucci
<BR>&nbsp;</BLOCKQUOTE>
&nbsp;&nbsp;&nbsp; I'm doing float numbers like that:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
float e=((float)rand()/1000) for 1E-3 precision
<BR>&nbsp;
<BLOCKQUOTE TYPE=CITE>

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

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

<P>: Guillaume

<P>: g DOT betous AT writeme DOT com</BLOCKQUOTE>
&nbsp;
<PRE>--&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^ ^ ^
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | | |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +-+-+&nbsp;&nbsp; Fabrice ILPONSE
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; email: fabrice AT asim DOT lip6 DOT fr
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -</PRE>
&nbsp;</HTML>

--------------09B4BC806C45E69D1D6BF896--

- Raw text -


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