public static void Main()
int[] holePars = { 4, 3, 4, 4, 5, 4, 5, 3, 4, 4, 3, 5, 4, 4, 5, 4, 3, 4};
int[,] holeScores = new int[18, 4];
int[] totals = {0, 0, 0, 0};
(int score, int weight)[] scoreMap = {(-2, 2), (-1, 6), (0, 9), (1, 6), (2, 2), (3, 1)};
var totalWeight = scoreMap.Select(i => i.weight).Sum();
var randomScores = new Random();
Console.WriteLine("Hole Par Golfer 1 Golfer 2 Golfer 3 Golfer 4");
foreach(var par in holePars)
for (int i = 0; i < 9; i++)
Console.Write($" {i + 1}{holePars[i],4} ");
for (int j = 0; j < 4; j++)
var score = randomScores.Next(totalWeight);
while (score > 0) { score -= scoreMap[scoreIndex++].weight;}
holeScores[i,j] = holePars[i] + scoreMap[scoreIndex].score;
Console.Write($"{holeScores[i,j],-9}");
totals[j] += holeScores[i,j];
Console.WriteLine($"Front {totals[0]} {totals[1]} {totals[2]} {totals[3]}");