I want to generate some games for Mega-Sena using JavaScript, so that I can skip a list of numbers and indicate the total number of games to be generated. Knowing that each game will have 6 numbers, what is the best way to generate these games?
var numeros_ignorados = [];
var quantidade_de_jogos;
// operação para gerar jogos
* Mega-Sena is a lottery mode where six numbers are drawn from 1 to 60 not being repeated.
The numeros_ignorados
are individual numbers that should not appear in any series. For example, 13
and 10
.