int runs = (int) Math.random() * 1000000;
is equivalent to int runs = (int) (Math.random() * 1000000);
This search is better ( "\s?[;)]" is added at the end): http://www.google.com/codesearch?hl=en&lr=&q=\%28int...
is equivalent to int runs = (int) (Math.random() * 1000000);
This search is better ( "\s?[;)]" is added at the end): http://www.google.com/codesearch?hl=en&lr=&q=\%28int...
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op...
http://www.cs.uwf.edu/~eelsheik/cop2253/resources/op_precede...
class Test {
public Test() {}
public static void main(String[] argv) {
int i;
for (i = 0; i < 100; i += 1) {
System.out.println("RND=" + ((int) Math.random() * 100000));
}
}
}