I'm learning to code for Android and would like to make a program that will randomly select a single number from a range, then run a random select of the remaining numbers for specified iterations.
4 iterations in this example:
- 1 2 3 4 5 6 7 8 9 10, randomly select an integer, say "7", then new set,
- 1 2 3 4 5 6 8 9 10, randomly select an integer, say "2", then new set,
- 1 3 4 5 6 8 9 10, randomly select an integer, say "9", then new set,
- 1 3 4 5 6 8 10, randomly select an integer, say "6".
Output would be 2, 6, 7, 9.
Would i be using char assignation from a shuffled array?
Aucun commentaire:
Enregistrer un commentaire