i want to make random numbers for x[row][col] that row =10 and col =10, but my problem is: how i fix random numbers of n[col]=5;
here is my code:
public static void main(String[] args){
double[][] x= new double[10][10];
int row,col;
int n[]={0,0,0,0,0,0,0,0,0,0};
for(row=0; row<10; row++ ){
for(col=0; col<10; col++){
if( n[col]==5){
x[row][col]= (double) (Math.random());
System.out.println("x[" + row + "][" + col + "] = " x[row][col]);
}
}
}
}