public static void Main()
int[] getal = new int[5];
Random Willekeurig = new Random();
for (int x = 0; x <= getal.GetUpperBound(0); x++)
getal[x] = Willekeurig.Next(1, 7);
for (int y = 0; y <= getal.GetUpperBound(0); y++)
uitvoer += Convert.ToString(getal[y]) + Environment.NewLine;
positie = Array.IndexOf(getal, 6);
uitvoer += Environment.NewLine + "Het getal 6 staat op positie " + (positie + 1) + ".";
uitvoer += Environment.NewLine + "Het getal 6 komt niet voor!";
Console.WriteLine(uitvoer);