Hi,
I'm new to programming and am using BlueJ. I'm trying to generate n random points with [x,y] co-ords each in the range (0,1).
double[] location = new double [n];
for (i=0;i<n;i++){
location[i]=Math.random();
is what i was thinking however this does not work since i is not defined properly. I'm a little confused, any help would be appreciated.
Thanks
Generate random points
Started by
Guest_tim838_*
, Oct 14 2006 06:38 PM
2 replies to this topic


Sign In
Create Account

Guest_tim838_*
Back to top










