You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//mutiplies the Math.random result by 6 then converts the double math.random value into an int(ie turning 0.32423141234 to 0). The number is then added 1 to in order to make the result 1-6
rolls [i] = ((int)(Math.random()*6))+1;
}
//for loop goes through each index of the array and prints them out.