@@ -0,0 +1,1265 @@
+import java.util.Random;%0A%0Apublic class PseudoRandom %7B%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        pseudoRandom();%0A        realRandom();%0A    %7D%0A%0A    private static void pseudoRandom() %7B%0A        System.out.println(%22%5CnGenerating 2 trails of pseudo-random numbers:%22);%0A        for (int trial = 1; trial %3C= 2; trial++) %7B%0A            System.out.println(%22%5CnTrial %22 + trial + %22:%22);%0A            Random r = new Random(123);%0A            for (int i = 1; i %3C= 10; i++) %7B%0A                System.out.println(i + %22: %22 + r.nextInt(100));%0A            %7D%0A        %7D%0A    %7D%0A%0A    private static void realRandom() throws InterruptedException %7B%0A        System.out.println(%22%5CnGenerating 2 trails of really random numbers:%22);%0A        for (int trial = 1; trial %3C= 2; trial++) %7B%0A            System.out.println(%22%5CnTrial %22 + trial + %22:%22);%0A            for (int i = 1; i %3C= 10; i++) %7B%0A                pause();%0A                Random rand = new Random(System.currentTimeMillis());%0A                System.out.println(i + %22: %22 + rand.nextInt(100));%0A            %7D%0A        %7D%0A    %7D%0A%0A    private static void pause() %7B%0A        try %7B%0A            Thread.sleep(1);%0A        %7D catch (InterruptedException ex) %7B%0A            Thread.currentThread().interrupt();%0A        %7D%0A    %7D%0A%7D%0A

add Java solution for pseudo random number generator