main.java
//Generates a random number from 1 to 6
Generates a random number from 1 to 6
Generates a random number from 1 to 6
public static int roll_dice() {
		Random rand = new Random();
		int dice = (int) rand.nextInt(6)+1;
		return dice;
	}
public static int roll_dice ( ) { Random rand = new Random ( ) ; int dice = ( int ) rand . nextInt ( 6 ) + 1 ; return dice ; }
Generates a random number from 1 to 6
Generates a random number from 1 to 6