True Random Number generator from file exchange

I've downloaded 2 random number generators, but neither works:
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>
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

Erik S.
Erik S. 2015년 2월 18일
Why can't you use the regular rand function in Matlab?

댓글을 달려면 로그인하십시오.

답변 (4개)

Homeoftom
Homeoftom 2017년 1월 12일

1 개 추천

go to line 56 and chanege it from
% data = urlread(url);
to:
% data = webread(url);
Jan
Jan 2015년 2월 17일

0 개 추천

Please contact the authors at first.
Nicola Scantamburlo
Nicola Scantamburlo 2018년 5월 17일

0 개 추천

Change http with https in the url assignment
Giuseppe Altieri
Giuseppe Altieri 2020년 8월 20일
편집: Giuseppe Altieri 2020년 8월 20일

0 개 추천

the new url uses "https"

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2015년 2월 17일

편집:

2020년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by