using System.Collections.Generic;
public static void Main()
int[] numbers = new int[amount];
Random rnd = new Random();
for(int i = 0; i < amount; i++){
numbers[i] = rnd.NormalNext(5, 10, 5);
Dictionary<int, int> numlist = new Dictionary<int, int>();
foreach(int num in numbers) {
if(!numlist.ContainsKey(num)) { numlist.Add(num, 0); }
Console.WriteLine(String.Join(", ", numlist.OrderBy(kp => kp.Key)));
public static class RandomThings {
public static int NormalNext(this Random rnd, int minValue, int maxValue, int weighting)
if (weighting < 1) return 0;
while (++count * weighting <= maxValue) val += rnd.Next(weighting);