[scilab-Users] Re: Re: bug in rand generation?
Samuel Gougeon
Samuel.Gougeon at univ-lemans.fr
Thu May 6 21:18:01 CEST 2010
----- Message d'origine -----
De : Amaël Delaunoy
Date : 05/05/2010 15:41:
> Why don't fixing the seed be the feature, and that by default the rand
> function would return real random values?
> It makes more sense to me, and I think this is the way it is done in
> other scientific programming environments I use (octave, matlab or
> python).
I agree with you Amaël. If for some experiments it is necessary
to yield repeatable random sequences, it is always possible by
fixing the seed at a given value. But this should not be the default.
If you are eager to get a random seed indexed on the clock, you
may set it in your SCI\scilab.start or your SCIHOME\scilab.ini | .scilab
files. See also help rand , help grand , help getdate etc.
Regards
Samuel
More information about the users
mailing list