function r = runs_sample ( m, n )

%*****************************************************************************80
%
%% runs_sample() samples the Runs PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 January 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the parameters of the PDF.
%
%  Output:
%
%    integer R, the number of runs.
%
  a = runs_simulate ( m, n );

  r = i4vec_run_count ( m + n, a );

  return
end
