随机数的一个小小的想法。
이전 댓글 표시
老哥们好,我突然有个想法,就是用随机函数生成10组1-10的随机数,最后用100这个数来控制输出
a=randperm(10,10)
for i=1:100
disp(a{1})
end
这代码可行么?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 随机数生成에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!