-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
42 lines (29 loc) · 970 Bytes
/
Program.cs
File metadata and controls
42 lines (29 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ThreadSort
{
internal static class Program
{
/// <summary>
/// Hlavní vstupní bod aplikace.
/// </summary>
[STAThread]
static void Mainx()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//Application.Run(new Form3());
int length = 15;
Random random = new Random();
int[] array = new int[length];
for (int i = 0; i < length; i++)
{
array[i] = random.Next(101); // Generates a random number between 0 and 100
}
Application.Run(new Form4(array));
}
}
}