I have a String array with many elements (as I haven't still finished the Application, I don't know exactly the number), maybe about 200. I would like to get 20 random elements of this array, but being certain that every random element occurs only once, like, I don't want to get in those 20 elements the 5th element (for example) twice. How can I do this?
No comments:
Post a Comment