function x = bradford_sample ( a, b, c )

%*****************************************************************************80
%
%% bradford_sample() samples the Bradford PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 April 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, C, the parameters of the PDF.
%    A < B,
%    0.0 < C.
%
%  Output:
%
%    real X, a sample of the PDF.
%
  cdf = rand ( 1, 1 );

  x = a + ( b - a ) * ( ( c + 1.0 )^cdf - 1.0 ) / c;

  return
end
