function uniform_in_circle_test ( )

%*****************************************************************************80
%
%% uniform_in_circle_test() tests uniform_in_circle().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 August 2005
%
%  Author:
%
%    John Burkardt
%
  n = 1000;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'uniform_in_circle_test():\n' );
  fprintf ( 1, '  uniform_in_circle() maps uniform \n' );
  fprintf ( 1, '  points into a unit circle.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of points N =          %12d\n', n );

  p = uniform_in_circle ( n );
%
%  Make a plot.
%
  clf ( );
  plot ( p(:,1), p(:,2), 'b.' );
  grid ( 'on' );
  axis ( 'equal' );
  xlabel ( '<--- X --->' );
  ylabel ( '<--- Y --->' );
  title ( 'uniform\_in\_circle()' );
  filename = 'uniform_in_circle.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s".\n', filename );

  return
end
