class Main {
public int randomNumber(){ //NOT static
int result = (int)(Math.random()*50)+1;
return result;
}
public static void main(String[] args) {
Main thing1 = new Main();
Main thing2 = new Main(); //two different objects
int thing1num = thing1.randomNumber();
int thing2num = thing2.randomNumber(); //get two different numbers
System.out.println(thing1num);
System.out.println(thing2num);
}
}