-2

What would be the best way to generate 50,000 unique random values which are put into an ArrayList in Java?

yellowhat5
  • 119
  • 1
  • 1
  • 6

1 Answers1

2

Fill the ArrayList with 50,000 sequential values and call Collections.shuffle(list).

Kayaman
  • 70,361
  • 5
  • 75
  • 119