function x = lorentz_sample ( )

%*****************************************************************************80
%
%% lorentz_sample() samples the Lorentz PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 February 1999
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    real X, a sample of the PDF.
%
  cdf = rand ( 1, 1 );

  x = lorentz_cdf_inv ( cdf );

  return
end
