[Scilab-users] Uniform distribution of non equidistant integers

Jens Simon Strom j.s.strom at hslmg.de
Mon Aug 29 20:46:57 CEST 2022


Hallo,
to get a random number from an uniform distribution of e.g. 1, 5 and 9 I 
can use

x=grand(1,1, "uin", 1, 3); if x==2; x=5; elseif x==3 x=9; end xI there a 
more straightforward way? Regards Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20220829/1dac853c/attachment.htm>


More information about the users mailing list