function p = circle_unit_sample ( )

%*****************************************************************************80
%
%% CIRCLE_UNIT_SAMPLE returns a randomly selected point on the unit circle.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 September 2018
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Output, real P(2,1), a point selected uniformly at random from
%    the circle of radius 1 and center (0,0).
%
  theta = 2.0 * pi * rand ( 1, 1 );
  p = [ cos(theta); sin(theta) ];

  return
end

