23
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
int[] getal = new int[5];
8
String uitvoer = "";
9
Random Willekeurig = new Random();
10
11
for (int x = 0; x <= getal.GetUpperBound(0); x++)
12
{
13
getal[x] = Willekeurig.Next(1, 7);
14
}
15
16
for (int y = 0; y <= getal.GetUpperBound(0); y++)
17
{
18
uitvoer += Convert.ToString(getal[y]) + Environment.NewLine;
19
}
20
21
Console.WriteLine(uitvoer);
22
}
23
}
Cached Result
1
6
3
2
6
6
3
2
6