Hello,
I am trying to pick a random array out of 6, and everytime one array is picked, add one number to it (so i have a total count afterwards)
How can i do that?
Heres what i did so far:
I dont think this is complicated, i just dont have the drill yet...
thank you.
1 2 3 4 5 6 7 8 9 10 11 12 | int []dice = { 0 , 0 , 0 , 0 , 0 , 0 }; int n; public void act() { for ( int i = 0 ; i <= 100 ; i++) { n = Greenfoot.getRandomNumber( 6 )+ 1 ; dice[n] = ??? } } |