Browse Source

randomNummer 3

remotes/origin/fdai7487-main-patch-56841
fdai7446 2 years ago
parent
commit
0406d32174
  1. 3
      Taschenrechner.java

3
Taschenrechner.java

@ -45,9 +45,10 @@ public class Taschenrechner {
}
int randomNummer(int a, int b) {
//Zufällige Nummer von a bis b
int temp = 0;
temp = (int) Math.random();
temp = (int) (Math.random() * (b + 1) ) + a;
return temp;
}

Loading…
Cancel
Save