function x = exponential_01_sample ( )

%*****************************************************************************80
%
%% exponential_01_sample() samples the Exponential PDF with parameter 1.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    real X, a sample of the PDF.
%
  cdf = rand ( 1, 1 );

  x = - log ( 1.0 - cdf );

  return
end
