Summation of Random Numbers
1 回表示 (過去 30 日間)
古いコメントを表示
How would you go about writing a code to solve a summations of randomly generated intergers, say r= to an equation, until the sum is greater than a number, say x.
0 件のコメント
採用された回答
Walter Roberson
2019 年 10 月 13 日
I would use a while loop.
while summation <= x
%add a random integer to the summation
end
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!