Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

coin flip in java

public static int CoinFlip(){
	    int i;
	    i = (int)(2*Math.random());
		return i;
	}
 
PREVIOUS NEXT
Tagged: #coin #flip #java
ADD COMMENT
Topic
Name
4+4 =