Probability in printing text
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I want, upon starting my function, for one of 5 text statements to be printed. There should be 1/5 chance of any one appearing, and the text printed should generally change with each run. How could I go about doing this? Additionally, if I wanted to change the text statements to choose from (7 instead of 5), how would I do that?
0 件のコメント
回答 (1 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!