[Scilab-users] Get random number from a matrix
Chuox
chuox.bece at gmail.com
Sat Jun 7 02:30:34 CEST 2014
i found this solution, but i'm guessing there must be a more easy and
efficient solution.
The scrip is this:
Matrix=[25 ,32 ,40, 50] ;
tam=size(Matrix);
number=grand(1,1,"uin",1,tam(2));
random=Matrix(number)
Hope its helps someone.
--
View this message in context: http://mailinglists.scilab.org/Get-random-number-from-a-matrix-tp4030691p4030692.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list