Originally Posted by amilabanuka
generate a random number in anyway you like. if the scale is low make is bit larger. then take the modulo 2 so you'll get either 1 or 0. nominate those as you like. then you have coin flipping.
then you can loop it and get the results
I have done the first part. but the second part is bit treaky