I would like to use mt19937 to loop over an array and grab each value from it exactly once, but in a random order. Essentially, is there a way to use mt19937 to generate all numbers within a particular range exactly once (without just ignoring duplicates, but ensuring that it does not produce duplicates altogether(for the sake of efficiency))?
Aucun commentaire:
Enregistrer un commentaire