You're error is as you said the myCoin.flip. You have to put myCoin.flip() and also change the flip method return type to double.



for(int flips = 0; flips < 1000; flips++)
{



if...