public class TestSample {
public static void main(String[] args) {
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
double ran = Math.random();
}
}
I don't want to use Random r = new Random();
class. Is there any other way to generate random numbers. I am just struck with what logic could be applied to generate random numbers between two numbers.
http://stackoverflow.com/questions/190135/open-source-random-number-generation-algorithm-in-c – Jan S Sep 15 '11 at 08:10