function r8vec_uniform_unit_test ( )

%*****************************************************************************80
%
%% r8vec_uniform_unit_test() tests r8vec_uniform_unit().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 July 2015
%
%  Author:
%
%    John Burkardt
%
  m = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_UNIFORM_UNIT_TEST\n' );
  fprintf ( 1, '  R8VEC_UNIFORM_UNIT returns a random R8VEC\n' );
  fprintf ( 1, '  on the surface of the unit M sphere.\n' );
  fprintf ( 1, '\n' );

  for j = 1 : 5

    x = r8vec_uniform_unit ( m );

    r8vec_print ( m, x, '  Vector:' );

  end

  return
end
