Difference between randi(1,M) and randi() in for loop
Show older comments
Are there any difference between A and B?
randi(1,M);
and
for k=1:M
randi(1,1);
end
1 Comment
Azzi Abdelmalek
on 19 May 2016
Your question is not clear. Your for loop doesn't do anything
Accepted Answer
More Answers (0)
Categories
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!