step_ave = 0;
for i = 1 : 100

  winnings = 0;
  steps = 0;
  while ( winnings < 10 )
    winnings = winnings + rand ( );
    steps = steps + 1;
  end
  step_ave = step_ave + steps;
  
end
step_ave = step_ave / 100;
step_ave

