zufällige Zahlen bis 1000
This commit is contained in:
parent
edf26de378
commit
74d09fc2a8
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ int main()
|
|||
{
|
||||
int *array = new int[amount];
|
||||
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);
|
||||
delete[] array;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ int main()
|
|||
{
|
||||
int *array = new int[amount];
|
||||
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);
|
||||
delete[] array;
|
||||
}
|
||||
|
|
Reference in a new issue