function uniform_on_circle_test ( )

%*****************************************************************************80
%
%% uniform_on_circle_test() tests uniform_on_circle().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 April 2022
%
%  Author:
%
%    John Burkardt
%
  n = 100;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'uniform_on_circle_test():\n' );
  fprintf ( 1, '  uniform_on_circle() returns uniform random points\n' );
  fprintf ( 1, '  on a circle x^2 + y^2 = 1.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  N = %12d\n', n );

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

  return
end
