bug in rand generation?

Amaël Delaunoy amael.delaunoy at gmail.com
Wed May 5 15:41:54 CEST 2010


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).

So, it's a feature.
> This is in the current documentation, but not very clearly written.
> I will add a better warning in the documentation ASAP.
>
> YC
>
> Le 05/05/2010 14:21, Collette yann a �crit :
> > Hello,
> >
> > Thanks for the report. I opened the bug 7037.
> >
> > YC
> >
> > Le 05/05/2010 14:04, Ama�l Delaunoy a �crit :
> >> Dear all,
> >>
> >> It appears that the rand (also grand) functions generate equal
> >> numbers each time Scilab is launched. (tested in several scilab
> >> versions, 4.x and 5.2 under linux)
> >> This is not written in the documentation of those functions.
> >> How to reproduce? simply launch scilab, type rand(2,2,'uniform'),
> >> exit scilab, launch scilab, type rand(2,2,'uniform') again, values
> >> are identical. (same with grand(2,2,'def') for example)
> >>
> >> Is it an important missing point in the documentation? or a bug of
> >> the rand/grand functions?
> >> Or am I missing somethinghere?,
> >>
> >> Regards,
> >> Amael
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100505/7ff64986/attachment.htm>


More information about the users mailing list