function halton_sequence_test ( )

%*****************************************************************************80
%
%% halton_sequence_test() tests halton_sequence().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 August 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'halton_sequence_test():\n' );
  fprintf ( 1, '  HALTON_SEQUENCE returns the elements I1 through I2\n' );
  fprintf ( 1, '  of an M-dimensional Halton sequence.\n' );

  for m = 1 : 3
    fprintf ( 1, '\n' );
    fprintf ( 1, '  HALTON_SEQUENCE(0,10,%d):\n', m );
    r = halton_sequence ( 0, 10, m );
    r8mat_print ( m, 11, r, '  R:' );
  end

  m = 3;
  fprintf ( 1, '\n' );
  fprintf ( 1, '  HALTON_SEQUENCE(10,0,%d):\n', m );
  r = halton_sequence ( 10, 0, m );
  r8mat_print ( m, 11, r, '  R:' );

  return
end
