random numbers gen
posted 8 years ago
By without repetition you mean you want to randomly permute a sequence of numbers and then show them one by one? If that's the case I would recommend creating a list of numbers from 1 to n and then calling Collections.shuffle on it. Then your "ith" random number will be the "ith" element of this sequence.