function i4_uniform_sample_test ( )

%*****************************************************************************80
%
%% i4_uniform_sample_test() tests i4_uniform_sample().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    25 January 2018
%
%  Author:
%
%    John Burkardt
%
  initialize ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_uniform_sample_test():\n' );
  fprintf ( 1, '  i4_uniform_sample() samples the uniform distribution\n' );
  fprintf ( 1, '  on integers.  Generate C between A and B.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    A    B    C\n' );
  fprintf ( 1, '\n' );
 
  for i = 1 : 10
    a = i4_uniform_sample ( -10, 10 );
    b = i4_uniform_sample ( a, 20 );
    c = i4_uniform_sample ( a, b );
    fprintf ( 1, '  %3d  %3d  %3d\n', a, b, c );
  end

  return
end
