Simulation of coin toss using random numbers