-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
45 lines (35 loc) · 925 Bytes
/
main.cpp
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
#include <iostream>
#include <cstdlib>
#include <ctime>
#include "radix.hpp"
int main ()
{
std::srand( std::time(NULL) );
j::List list;
for (int i = 0; i < 29999; ++i) {
int random = (rand() % 10000);
list.push_back(random);
}
for (int i = 0; i < 29999; ++i) {
int random = (rand() % 10000) + 10000;
list.push_back(random);
}
for (int i = 0; i < 29999; ++i) {
int random = (rand() % 10000) + 20000;
list.push_back(random);
}
for (int i = 0; i < 29999; ++i) {
int random = (rand() % 10000) + 30000;
list.push_back(random);
}
for (int i = 0; i < 29999; ++i) {
int random = (rand() % 10000) + 40000;
list.push_back(random);
}
j::rSort(list);
//for (unsigned i = 0; i < list.size(); ++i) {
//std::cout << list[i] << " ";
//}
//std::cout << std::endl;
return 0;
}