|
|
@ -8,7 +8,7 @@ |
|
|
|
void initialisiereZufallsgenerator(); |
|
|
|
|
|
|
|
|
|
|
|
int generiereZufallszahl(int min, int max); |
|
|
|
int generiereZufallszahl(int minimum, int max); |
|
|
|
|
|
|
|
|
|
|
|
char generiereZufallsOperator(); |
|
|
@ -54,8 +54,8 @@ void initialisiereZufallsgenerator() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int generiereZufallszahl(int min, int max) { |
|
|
|
return min + (int)((double)rand() / (RAND_MAX + 1) * (max - min + 1)); |
|
|
|
int generiereZufallszahl(int minimum, int max) { |
|
|
|
return minimum + (int)((double)rand() / (RAND_MAX + 1) * (max - minimum + 1)); |
|
|
|
} |
|
|
|
|
|
|
|
char generiereZufallsOperator() { |
|
|
|