function x = random_walks_finite ( steps, trials )

%*****************************************************************************80
%
%% RANDOM_WALKS_FINITE 
%
  x = zeros(trials,1);
  for s = 1 : steps
    c = 2 * round ( rand(trials,1) ) - 1;
    x = x + c;
    x = max ( x, -10 );
    x = min ( x, +10 );
  end

  return
end
