Browse Source

function generiereZufallszahl

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

8
src/main/c/Mathe.c

@ -51,6 +51,14 @@ void initialisiereZufallsgenerator() {
}
//18
int generiereZufallszahl(int min, int max) {
return min + (int)((double)rand() / (RAND_MAX + 1) * (max - min + 1));
}

Loading…
Cancel
Save