function x = gumbel_sample ( )

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

  x = gumbel_cdf_inv ( cdf );

  return
end
