function x = arcsin_sample ( a )

%*****************************************************************************80
%
%% arcsin_sample() samples the Arcsin PDF.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 April 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, the parameter of the CDF.
%    A must be positive.
%
%  Output:
%
%    real X, a sample of the PDF.
%
  cdf = rand ( 1, 1 );

  x = arcsin_cdf_inv ( cdf, a );

  return
end
