Coin Toss in cpp