function seed = latin_random_test01 ( seed )

%*****************************************************************************80
%
%% LATIN_RANDOM_TEST01 tests LATIN.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    03 April 2007
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer SEED, an initial seed for the random number generator.
%
%    Output, integer SEED, the updated random number seed.
%
  dim_num = 2;
  point_num = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'TEST01\n' );
  fprintf ( 1, '  LATIN_RANDOM chooses a Latin cell arrangement,\n' );
  fprintf ( 1, '  and returns a random point from each cells.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Spatial dimension = %d\n', dim_num );
  fprintf ( 1, '  Number of points =  %d\n', point_num );
  fprintf ( 1, '  Using seed = %d\n', seed );

  [ x, seed ] = latin_random ( dim_num, point_num, seed );

  r8mat_transpose_print ( dim_num, point_num, x, '  The Latin Random points:' );

  return
end
