From 74d09fc2a8d9bf3119a2b57706494ad072a9ed6f Mon Sep 17 00:00:00 2001 From: Leaced Date: Mon, 10 Apr 2017 15:32:37 +0200 Subject: [PATCH] =?UTF-8?q?zuf=C3=A4llige=20Zahlen=20bis=201000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sortieralgorithmen/InsertionSort.cpp | 2 +- Sortieralgorithmen/SelectionSort.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sortieralgorithmen/InsertionSort.cpp b/Sortieralgorithmen/InsertionSort.cpp index 9bd3b2c..7993d43 100644 --- a/Sortieralgorithmen/InsertionSort.cpp +++ b/Sortieralgorithmen/InsertionSort.cpp @@ -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; } diff --git a/Sortieralgorithmen/SelectionSort.cpp b/Sortieralgorithmen/SelectionSort.cpp index a229754..c0fe939 100644 --- a/Sortieralgorithmen/SelectionSort.cpp +++ b/Sortieralgorithmen/SelectionSort.cpp @@ -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; }