Gold Coin Flip
5.3 | 1.0
Gold Coin:
Coin flipping, coin tossing, or heads or tails is the practice of throwing a coin in the air to choose between two alternatives, sometimes to resolve a dispute between two parties. It is a form of sortition which inherently has only two possible and equally likely outcomes.
Process:
During a coin toss, the coin is generate randomly by computer
var randomNumber = Int(arc4random_uniform(100))
if(randomNumber > 50)
{
targetCoinSide =