import java.util.Random;

public class ArrayCounter {
public static void main(String[] args){

Random rand = new Random();
int[] freq = new int[7]; // A dice has only 6 elements but the array index will satrt from 0 to 6 so
//we will have seven elements.
for(int roll = 1; roll