This might be stupid, but I'm want to know if it's possible, lets start with 5x5 a matrix
int[][] x = new int[5][5];
Random rg = new Random();
now let's fill it with Pseudo Random information
for(int i=0;i<5;i++){
for(int j =0; j<5;j++){
x[i][j] = rg.nextInt();
}
}
but how can I do this right with one Single for?
for(int i=0, j=0; i<5; (j==5?i++, j=0:j++){
x[i][j] = rg.nextInt();
}
this is not working :(