import java.util.*;
public class RandomExperimento {
    public static void main( String args[] ) {
        // create random object
        Random numeroRandom = new Random();

        // setting seed
        // con esto planto la semilla

        numeroRandom.setSeed(2);

        // value after setting seed
        // obtengo un valor que siempre será el mismo mientras haya plantado la semilla 200
        //valor = -1154715079
        System.out.println("Object after seed: " + numeroRandom.nextInt());



        // saco el segundo valor, este tampoco cambiará al compilar mientras la semilla sea 200
        //1260042744
        System.out.println("Second object after seed: " + numeroRandom.nextInt());




        Random numeroRandom2 = new Random();

        // setting seed
        // con esto planto la semilla

        numeroRandom2.setSeed(2);

        // value after setting seed
        // obtengo un valor que siempre será el mismo mientras haya plantado la semilla 200
        //valor = -1154715079
        System.out.println("NUMERO RANDOM2--Object after seed: " + numeroRandom2.nextInt());



        // saco el segundo valor, este tampoco cambiará al compilar mientras la semilla sea 200
        //1260042744
        System.out.println("NUMERO RANDOM2-- Second object after seed: " + numeroRandom2.nextInt());



    }

}
