function x = circular_normal_01_sample ( )

%*****************************************************************************80
%
%% circular_normal_01_sample() samples the Circular Normal 01 PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    real X(2), a sample of the PDF.
%
  v1 = rand ( 1, 1 );
  v2 = rand ( 1, 1 );

  x(1) = sqrt ( - 2.0 * log ( v1 ) ) * cos ( 2.0 * pi * v2 );
  x(2) = sqrt ( - 2.0 * log ( v1 ) ) * sin ( 2.0 * pi * v2 );

  return
end
