Duane

Duane

  • NA
  • 77
  • 0

Random arraylist generation

Oct 4 2011 12:47 PM
I sincerely doubt if this is a unique problem, but I have been unable to find or come up with a workable solution. Briefly, I have two arraylists, each containing characters. One has vowels, the other consonants. I need to get three random vowels and seven random consonants to create a new combined arraylist. Then I need to randomly sort that arraylist. No duplicate items are allowed. This final item seems to be my problem, but if there is a more succinct method of performing this operation I'm ready to hear about it.

Hopefully,
colossus1958

P.S. I hope I have this in the right forum, if not please let me know.

Answers (2)