フィルターのクリア

How to simulate a lottery X number of iterations?

2 ビュー (過去 30 日間)
Tom
Tom 2013 年 2 月 20 日
I have found examples of simulating a lottery once; however I have been unable to find examples of repeating iterations of a lottery.
I would like to simulate a game that picks 5 balls out of 37 (no replacement) as well as an additional 1 ball out of 37 (may be duplicate as first set) over a series of X number of iterations (i.e. 10000).
Thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 2 月 20 日
Hint: randperm()

カテゴリ

Help Center および File ExchangeStrategy & Logic についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by