send link to app

Gold Coin Flip


4.6 ( 2656 ratings )
Games Amusement Dobbelstenen Sport
Developer: StartApps, LLC
0.99 USD

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 = "head"
}
else
{
targetCoinSide = "tail"
}

TossCoin()

and simulate it rotation end-over-end several times. Either beforehand or when the coin is in the rest stop, an interested party calls "heads" or "tails", indicating which side of the coin that party is choosing. The other party is assigned the opposite side. When the coin comes to stop, the toss is complete and the party who called or was assigned the face-up side is declared the winner.