zufällige Zahlen bis 1000

This commit is contained in:
Leaced 2017-04-10 15:32:37 +02:00
parent edf26de378
commit 74d09fc2a8
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ int main()
{ {
int *array = new int[amount]; int *array = new int[amount];
srand(time(0)); srand(time(0));
for(unsigned short idx = 0; idx < amount; idx++) array[idx] = rand()%100; for(unsigned short idx = 0; idx < amount; idx++) array[idx] = rand()%1000;
InsertionSort(array, amount); InsertionSort(array, amount);
delete[] array; delete[] array;
} }

View file

@ -23,7 +23,7 @@ int main()
{ {
int *array = new int[amount]; int *array = new int[amount];
srand(time(0)); srand(time(0));
for(unsigned short idx = 0; idx < amount; idx++) array[idx] = rand()%100; for(unsigned short idx = 0; idx < amount; idx++) array[idx] = rand()%1000;
SelectionSort(array, amount); SelectionSort(array, amount);
delete[] array; delete[] array;
} }