Random numbers like lotto

Jak narysować 6 liczb 49 in Matlab aby za każdym razem rysować różne liczby? Proszę, pomóż mi, moja droga

 Risposta accettata

Walter Roberson
Walter Roberson il 5 Giu 2020
Modificato: Walter Roberson il 5 Giu 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.

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by