Ok so im trying to create two arrays of different random numbers, the problem is both arrays have exaclty the same numbers, now i have tried using one Random and the setting different seeds before generating the numbers but this does not help.
Heres the code
Random rnd = new Random(); //Create tempchannels for scene1 for(int i=0;i<=511;i++){ tempChannels[i] = rnd.nextInt(255); } scene1 = new Scene(tempChannels); //Create tempchannels for scene1 for(int i=0;i<=511;i++){ tempChannels[i] = rnd.nextInt(255); } scene2 = new Scene(tempChannels); compScene1 = scene1.getChannels(); compScene2 = scene2.getChannels();