True Random Number generator from file exchange
Afficher commentaires plus anciens
I've downloaded 2 random number generators, but neither works:
the first i got from here: http://www.mathworks.com/matlabcentral/fileexchange/21353-true-random-integer-generator
when i run it
truerand(9)
It yields:
Error using reshape To RESHAPE the number of elements must not change.
Error in truerand (line 57) y = reshape(str2num(data),m,n); %#ok<ST2NM>
The other one i got from here: http://www.mathworks.com/matlabcentral/fileexchange/13007-random-number-generator which i cannot call.
Does anyone use either of these and if so, does anyone know how to make them behave? i've tried looking over the code, but doesn't really understand anything.Possibly theres a third, simpler way to get true random numbers?
Thx a million -U
1 commentaire
Erik S.
le 18 Fév 2015
Why can't you use the regular rand function in Matlab?
Réponses (4)
Homeoftom
le 12 Jan 2017
go to line 56 and chanege it from
% data = urlread(url);
to:
% data = webread(url);
Jan
le 17 Fév 2015
0 votes
Please contact the authors at first.
1 commentaire
Uffe Larsen
le 18 Fév 2015
Nicola Scantamburlo
le 17 Mai 2018
0 votes
Change http with https in the url assignment
Giuseppe Altieri
le 20 Août 2020
Modifié(e) : Giuseppe Altieri
le 20 Août 2020
0 votes
the new url uses "https"
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!