I have a project I can't seem to wrap my head around. The only part I do not understand is this: Repeat for 1,000 times Create a new array of 100,000 numbers. ect...
Is this code replicating what I need? It seems to be, but i'm not certain. I do not want a code answer, I want a step in the right direction.
int size = 100000;
int max = 100000;
int[] array = new int[size];
int loop = 0;
Random generator = new Random();
generator.nextInt(max);
for (int i = 0; i<1000; i++)
{
array [i] = generator.nextInt(max);
}