I came across a code snippet on internet. Here it goes
public class Test {
public static void main(String[] args) {
Random random = new Random(441287210);
for(int j=0;j<10;j++) {
System.out.print(random.nextInt(10)+" ");
}
}
}
Everytime i run it it prints 1 1 1 1 1 1 1 1 1 1 . There might be a strong reason for it.
Why is this behaviour observed.
Here is the source --> http://www.javacodegeeks.com/2011/10/weird-funny-java.html