Það væri t.d hægt að gera svona: using System; using System.Collections; using System.Collections.Generic; using System.Text; namespace RollTheDice { class Program { static void Main(string[] args) { int rollCount = 1000000; /* Geymum hve oft hver tala kom upp í hashtöflu */ Hashtable results = new Hashtable(5); /* Byrjum á að núlla töfluna */ results.Add(1,0); results.Add(2, 0); results.Add(3, 0); results.Add(4, 0); results.Add(5, 0); results.Add(6, 0); for (int i = 0; i < rollCount; i++) {...