Posts by Vasco Lopes • 11 points
1 post
-
1
votes2
answers96
viewsA: Pass random values to Matrix
You can use the Math.Random function, it generates random numbers between [0.1] int m[][] = new int[30][2]; for(int i = 0; i < m.length; i++) { m[i][0] = (int) Math.random()*2400; //numeros de 0…