function halton_value_test ( )

%*****************************************************************************80
%
%% HALTON_VALUE_TEST tests HALTON_VALUE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    11 August 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'HALTON_VALUE_TEST\n' );
  fprintf ( 1, '  HALTON_VALUE returns the I-th element of an M-dimensional\n' );
  fprintf ( 1, '  Halton sequence.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    I          HALTON(I)\n' );

  for m = 1 : 3
    fprintf ( 1, '\n' );
    fprintf ( 1, '  Use M = %d\n', m );
    fprintf ( 1, '\n' );
    for i = 0 : 10
      r = halton_value ( i, m );
      fprintf ( 1, '  %3d', i );
      for j = 1 : m
        fprintf ( 1, '  %14.8f', r(j) );
      end
      fprintf ( 1, '\n' );
    end
  end

  return
end
