25
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
Array.Sort(getal);
17
18
for (int y = 0; y <= getal.GetUpperBound(0); y++)
19
{
20
uitvoer += Convert.ToString(getal[y]) + Environment.NewLine;
21
}
22
23
Console.WriteLine(uitvoer);
24
}
25
}
Cached Result
2017
06/09/2017 12:00
06/09/2017 12:00