Originally Posted by
mv740
if i understand correctly if i delete the loop for(int x=0;x<5;x++)... it will only create only 0 in every elements
What happened when you tested that theory?
Originally Posted by
mv740
i thought that by making the last loop it will only create a random number in a random spot on the row until there is 5 number then start over on the next line and the others element will be 0, dont know if im making any sense...
i'm doing my first java programming class so i'm still a beginner in java
Why do you want to randomize the spot? You can't guarantee you hit every spot- you might hit the same spot several times. Why not just iterate through each element and set it equal to whatever you want?