function [ x1, x2 ] = circle_sample ( a, b, c )

%*****************************************************************************80
%
%% circle_sample() samples points from a circle.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 October 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, C, the parameters of the circle.
%    The circle is centered at (A,B) and has radius C.
%    0.0 < C.
%
%  Output:
%
%    real X1, X2, a sampled point of the circle.
%
  radius_frac = rand ( 1, 1 );
  radius_frac = sqrt ( radius_frac );

  angle = rand ( 1, 1 );
  angle = 2.0 * pi * angle;

  x1 = a + c * radius_frac * cos ( angle );
  x2 = b + c * radius_frac * sin ( angle );

  return
end
