Clear Filters
Clear Filters

Random numbers like lotto

4 views (last 30 days)
Marcel Król
Marcel Król on 5 Jun 2020
Commented: Marcel Król on 17 Jun 2020
Jak narysować 6 liczb 49 in Matlab aby za każdym razem rysować różne liczby? Proszę, pomóż mi, moja droga

Accepted Answer

Walter Roberson
Walter Roberson on 5 Jun 2020
Edited: Walter Roberson on 5 Jun 2020
randperm(49, 6)
The "6/49" lotteries here also involve an "bonus" or "extra" number, in which case it might be randperm(49, 7) with the last number having special meaning.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!