function x = sphere_positive_sample ( )

%*****************************************************************************80
%
%% sphere_positive_sample() returns sample points on the unit sphere.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    28 September 2018
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Russell Cheng,
%    Random Variate Generation,
%    in Handbook of Simulation,
%    edited by Jerry Banks,
%    Wiley, 1998, pages 168.
%
%    Reuven Rubinstein,
%    Monte Carlo Optimization, Simulation, and Sensitivity
%    of Queueing Networks,
%    Wiley, 1986, page 232.
%
%  Output:
%
%    real X(3), the point.
%
  x = randn ( 3, 1 );
%
%  Normalize the vector.
%
  x = abs ( x ) / norm ( x );

  return
end
