function hammersley_sequence_test ( )

%*****************************************************************************80
%
%% hammersley_sequence_test() tests hammersley_sequence().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 August 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'HAMMERSLEY_SEQUENCE_TEST\n' );
  fprintf ( 1, '  HAMMERSLEY_SEQUENCE returns the elements I1 through I2\n' );
  fprintf ( 1, '  of an M-dimensional Hammersley sequence.\n' );

  n = 16;

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

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

  return
end
