function r8sd_random_test ( )

%*****************************************************************************80
%
%% R8SD_RANDOM_TEST tests R8SD_RANDOM.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 10;
  ndiag = 3;
  offset = [ 0, 1, 3 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8SD_RANDOM_TEST\n' );
  fprintf ( 1, '  R8SD_RANDOM randomizes an R8SD matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N =         %d\n', n );
  fprintf ( 1, '  Matrix diagonals NDIAG = %d\n', ndiag );

  seed = 123456789;
  [ a, seed ] = r8sd_random ( n, ndiag, offset, seed );

  r8sd_print ( n, ndiag, offset, a, '  The R8SD matrix:' );

  return
end
