function x = c_normal_01_sample ( )

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

  x_r = sqrt ( - 2.0 * log ( v1 ) ) * cos ( 2.0 * pi * v2 );
  x_c = sqrt ( - 2.0 * log ( v1 ) ) * sin ( 2.0 * pi * v2 );

  x = x_r + i * x_c;

  return
end
