Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
Random rand = new Random();
for (int i = 0; i < 1000000; i++) {
int listLength = rand.nextInt(60);
int[] randomizedList = new int[listLength];
int n = rand.nextInt(5) + 1;
for (int j = 0; j < randomizedList.length; j++) {
int randomNum = rand.nextInt(20);
randomizedList[j] = randomNum;