function x = pearson_05_sample ( a, b, c )

%*****************************************************************************80
%
%% pearson_05_sample() samples the Pearson 5 PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 September 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, C, the parameters of the PDF.
%    0.0 < A, 0.0 < B.
%
%  Output:
%
%    real X, a sample of the PDF.
%
  a2 = 0.0;
  b2 = b;
  c2 = 1.0 / a;

  x2 = gamma_sample ( a2, b2, c2 );

  x = c + 1.0 / x2;

  return
end
