function uniform_01_cdf_test ( )

%*****************************************************************************80
%
%% uniform_01_cdf_test() tests uniform_01_cdf().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 April 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'uniform_01_cdf_test():\n' );
  fprintf ( 1, '  uniform_01_cdf() evaluates the Uniform 01 CDF;\n' );
  fprintf ( 1, '  uniform_01_cdf_inv() inverts the Uniform 01 CDF.\n' );
  fprintf ( 1, '  uniform_01_pdf() evaluates the Uniform 01 PDF;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       X            PDF           CDF            CDF_INV\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 10

    x = rand ( 1, 1 );

    pdf = uniform_01_pdf ( x );

    cdf = uniform_01_cdf ( x );

    x2 = uniform_01_cdf_inv ( cdf );

    fprintf ( 1, ' %14g  %14g  %14g  %14g\n', x, pdf, cdf, x2 );

  end

  return
end
