This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: random number ..


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]