Browse Source

Declaration for Random Number

remotes/origin/Yasin
fdai7731 11 months ago
parent
commit
bec040861b
  1. 5
      src/main/c/Mathe.c

5
src/main/c/Mathe.c

@ -67,3 +67,8 @@ void zeigeAuswahl(const char* text);
//17
void initialisiereZufallsgenerator() {
srand(time(NULL));
//18
int generiereZufallszahl(int min, int max) {
return min + (int)((double)rand() / (RAND_MAX + 1) * (max - min + 1));
Loading…
Cancel
Save