function x = maxwell_sample ( a )

%*****************************************************************************80
%
%% maxwell_sample() samples the Maxwell PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 October 2004
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, the parameter of the PDF.
%    0 < A.
%
%  Output:
%
%    real X, a sample of the PDF.
%
  a2 = 3.0;
  x = chi_square_sample ( a2 );

  x = a * sqrt ( x );

  return
end
