function z = c8_normal_01 ( )

%*****************************************************************************80
%
%% c8_normal_01() returns a unit pseudonormal C8.
%
%  Discussion:
%
%    The value has mean 0 and standard deviation 1.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    04 November 2021
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    complex Z, a sample of the PDF.
%
  v1 = rand ( );
  v2 = rand ( );

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

  z = x_r + x_c * i;

  return
end
