coin flip java code example
Example: coin flip in java
public static int CoinFlip(){
int i;
i = (int)(2*Math.random());
return i;
}
public static int CoinFlip(){
int i;
i = (int)(2*Math.random());
return i;
}