@@ -0,0 +1,890 @@
+/*%0A * Copyright (c) 2018.%0A * J. Melzer%0A */%0A%0Apackage com.jmelzer.jitty.utl;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0A/**%0A * Created by J. Melzer on 27.03.2018.%0A */%0Apublic class RandomUtilTest %7B%0A%0A%0A    @Test%0A    public void randomIntFromInterval() %7B%0A%0A        for (int i = 0; i %3C 20; i++) %7B%0A            int n = RandomUtil.randomIntFromInterval(0, 10);%0A            assertTrue(%22must be between 0 and 10 not %22 + n, n %3E -1 && n %3C 11);%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void nextInt() %7B%0A        RandomUtil randomUtil = new RandomUtil(0, 10);%0A        for (int i = 0; i %3C 11; i++) %7B%0A            assertTrue(randomUtil.hasMoreNumbers());%0A            int n = randomUtil.nextInt();%0A            assertTrue(%22must be between 0 and 10 not %22 + n, n %3E -1 && n %3C 11);%0A        %7D%0A        assertFalse(randomUtil.hasMoreNumbers());%0A    %7D%0A%0A%7D

add test