function htsim2(n,m,p) % Simulate the coin flip game n times, flipping m times in each game, with % probability p that heads comes up, then display a bar graph of Peter's % winnings (which may be negative) for i=1:n flip=rand(1,m)