This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: random number ..
- From: Paul Brook <paul at nowt dot org>
- To: Lars Segerlund <lars dot segerlund at comsys dot se>, fortran at gcc dot gnu dot org
- Date: Mon, 24 Nov 2003 22:31:42 +0000
- Subject: Re: random number ..
- References: <20031119085829.34e6e8c4.lars.segerlund@comsys.se>
On Wednesday 19 November 2003 7:58 am, Lars Segerlund wrote:
> I have found a bug in the random number routing, but I'm on it, and
> think I can have it fixed rather fast.
>
> If using a subarray as argument it will have very interesting behaviour,
> fx:
>
> call random_number( a( 2:3, 4:5 ))
>
> Will not give arandom numbers as a result..
I also noticed that if you don't seed the random number generator, it always
returns zero. Maybe this is the same thing.
I'm a little concerned that could imply that the quality of the RNG is
dependent on which value you seed it with. Maybe I'm misunderstanding
things though.
Paul