function prob = repeatTossGame(n)
 countA = 0;
 for j = 1:n
     out = tossgame();
     if out == 1 countA = countA + 1;
     end;
 end;
 prob = countA/n;