If I set seed in Random why always get same random number in below code:
private static void createArray(int[] x) {
    for(int i =0; i<x.length; i++){
        Random random = new Random(500l);
        x[i] = random.nextInt(100000); //53695
    }
}
I am getting 53695 for every run and entire loop.
 
    