diff --git a/TaschenrechnerTest.java b/TaschenrechnerTest.java index 8ef5acc..7c3a42d 100644 --- a/TaschenrechnerTest.java +++ b/TaschenrechnerTest.java @@ -78,7 +78,12 @@ public class TaschenrechnerTest { @Test public void testRandomIntegerNummer() { + int a = 2; + int b = 10; + int r = (int) (Math.random() * (a + 1)) + b; + boolean result = r > a && r >= b; + assertEquals(true, result); } }