function uniform_nsphere_sample_test ( )

%*****************************************************************************80
%
%% UNIFORM_NSPHERE_SAMPLE_TEST tests UNIFORM_NSPHERE_SAMPLE;
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    10 April 2016
%
%  Author:
%
%    John Burkardt
%
  n = 3;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'UNIFORM_NSPHERE_SAMPLE_TEST\n' );
  fprintf ( 1, '  UNIFORM_NSPHERE_SAMPLE samples the Uniform Nsphere distribution.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Dimension N of sphere =       %6d\n', n );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Points on the sphere:\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 10
    [ x, seed ] = uniform_nsphere_sample ( n, seed );
    fprintf ( 1, '  %6d  %14g  %14g  %14g\n', i, x(1:n) );
  end

  return
end
