Münzflip in Java

public static int CoinFlip(){
	    int i;
	    i = (int)(2*Math.random());
		return i;
	}
Jeffrey Huang