[Scilab-users] rand("seed",s)

Jens Simon Strom j.s.strom at hslmg.de
Mon Apr 29 19:03:41 CEST 2019


Hallo Scilab équipe,

In my application it is vital   -  in addition to the normal focus when 
using seeds -  that /different/ seeds in rand("seed",seed) produce 
/different/ random number series. (1) Is that the case?

I am aware that  seed has to be a non negative integer. (2) Are there 
any further restrictions?  (3) What is the upper bound?

The minimal example below is as expected.

Kind regards

Jens

s1=1e3;
s2=1e10;
rand("seed",s1);
r1=rand(3,1);
rand("seed",s2);
r2=rand(3,1);
//
rand("seed",s1)
r3=rand(3,1);
rand("seed",s2);
r4=rand(3,1);
r1234=[r1  r2  r3  r4] ----------------------------------------------------




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190429/39805a9f/attachment.htm>


More information about the users mailing list