All good. There are other problems here. Are you trying to create an array with 10 elements?
double [] numbers = {(Math.random()*10)};
This is creating an array with exactly one...
Type: Posts; User: ChristopherLowe
All good. There are other problems here. Are you trying to create an array with 10 elements?
double [] numbers = {(Math.random()*10)};
This is creating an array with exactly one...
double x = 0 ;
double [] numbers = {x*(Math.random()*10)};
What do you get when you multiply a number by 0?