Mail Archives: djgpp/1998/03/23/19:02:16
--------------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> <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>
Umberto Michelucci
<BR> </BLOCKQUOTE>
I'm doing float numbers like that:
float e=((float)rand()/1000) for 1E-3 precision
<BR>
<BLOCKQUOTE TYPE=CITE>
<P>=============================================================================
<BR>Umberto Michelucci
Phone : (202)-994-0133
<BR>Department of Physics
Fax : (202)-994-3001
<BR>725 21st Street
E-mail: umich AT gwis2 DOT circ DOT gwu DOT edu
<BR>The George Washington University WWW : <A HREF="http://gwis2.circ.gwu.edu/~umich">http://gwis2.circ.gwu.edu/~umich</A>
<BR>Washington, D.C., 20052 USA
<BR>=============================================================================
<P> 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>
<PRE>--
^ ^ ^
| | |
+-+-+ Fabrice ILPONSE
| email: fabrice AT asim DOT lip6 DOT fr
|
|
-</PRE>
</HTML>
--------------09B4BC806C45E69D1D6BF896--
- Raw text -