function uniform_01_order_sample_test ( )

%*****************************************************************************80
%
%% uniform_01_order_sample_test() tests uniform_01_order_sample();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 April 2016
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'UNIFORM_01_ORDER_SAMPLE_TEST():\n' );
  fprintf ( 1, '  UNIFORM_ORDER_SAMPLE() samples the Uniform 01 Order distribution.\n' );
  fprintf ( 1, '\n' );

  x = uniform_01_order_sample ( n );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Ordered sample:\n' );
  fprintf ( 1, '\n' );

  for i = 1 : n
    fprintf ( 1, '  %6d  %14g\n', i, x(i) );
  end

  return
end
