
Np=1000;
bet=linspace(0,1,Np);
gain=zeros(1,Np);
N_games=200;

for i=1:Np
	gain(i)= bet_outcome( bet(i), N_games);
end

semilogy(bet, 1, 'r-'); % plots no gain situation
hold on; 
semilogy(bet, (gain),'-');
xlabel('bet fraction');
ylabel('gain');
title('gain vs bet');
hold off;




