This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: random number?
- To: Fredrik Lundgren <fredrik dot lundgren at norrkoping dot mail dot telia dot com>
- Subject: Re: random number?
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Mon, 21 May 2001 21:01:19 +0200
- CC: gcc at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <000201c0e222$17584480$eec743c3@p2e2t1>
Fredrik Lundgren wrote:
> How do I generate a randomnumber in G77?
See the g77 documentation - in the online documentation it's this URL:
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/g77_12.html#SEC309
Also note the SRAND function (to set a seed for the sequence of random
numbers).
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)