@@ -0,0 +1,335 @@
+import java.io.*;%0A%0Apublic class RandomNumbers_XtoY%7B%0A    public static void main(String args%5B%5D)%7B%0A        //two number%0A        int x = 10;%0A        int y = 20;%0A        int diff = y - x;%0A        %0A        //result from 10 to 20%0A        int r = (int)(Math.random()*(diff+1)+x);%0A        System.out.println(%22Result from 10 to 20: %22+r);%0A    %7D%0A%7D

random integer from X to Y