using System.Collections.Generic;
public static void Main(string[]args)
Random rnd = new Random();
List<int> diceSides = new List<int>();
Console.WriteLine("How many sides are on the dice?");
int sides = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("How many times will you roll the die?");
int rolls = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Would you like to add another dice to the list?");
string answer = Console.ReadLine();
Dictionary < int, double > rollStats = StatsDiceFour( rolls, diceSides );
foreach(KeyValuePair < int, double > roll in rollStats) {
Console.WriteLine("{0} : {1}%", roll.Key, roll.Value);
public static Dictionary<int, double> StatsDiceFour(int numbOfRolls, List<int> dice)
Dictionary<int, double> stats = new Dictionary<int, double>();
Random rnd = new Random();
for(int i=0; i<numbOfRolls; i++)
if(stats.ContainsKey(sum))
List < int > keys = stats.Keys.ToArray().ToList();
stats[key] = (stats[key]*100)/numbOfRolls;