val = .60
player2_win = 0;%number of times player 1 wins


%%%%%%%%LOOP AROUND THIS%%%%%%%%%%%%%%%%%%%%%%


%CODE FOR PLAYER 2
for i = 1:10
	%spin the wheel once.
	x = rand(1);

	if x > val
   	 player2_win = player2_win + 1;
	else%spin again
    	x = x + rand(1);
    	if x > val & x <= 1.0
       player2_win = player2_win + 1;
    	end
	end
	x   
	player2_win 

end