-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram5.cs
48 lines (35 loc) · 1.14 KB
/
Program5.cs
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
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ThreadSort
{
internal static class Program5
{
/// <summary>
/// Hlavní vstupní bod aplikace.
/// </summary>
[STAThread]
static void Mainx()
{
//Application.EnableVisualStyles();
//Application.SetCompatibleTextRenderingDefault(false);
//Application.Run(new Form3());
int length = 15;
int[] data = new int[length];
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 Form5(array));
Form5 form = new Form5(array);
//Application.Run(form);
form.Show();
form.showData();
System.Threading.Thread.Sleep(1000);
}
}
}