function r8ri_random_test ( )

%*****************************************************************************80
%
%% R8RI_RANDOM_TEST tests R8RI_RANDOM.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    08 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  nz = 11;

  ija = [ ...
     7,  8,  8, 10, 11, ...
    12,  3,  2,  4,  5, ...
     4 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8RI_RANDOM_TEST\n' );
  fprintf ( 1, '  R8RI_RANDOM randomizes an R8RI matrix\n' );
  fprintf ( 1, '  for a given sparsity pattern.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
  fprintf ( 1, '  Storage NZ =     %d\n', nz );

  seed = 123456789;
  [ a, seed ] = r8ri_random ( n, nz, ija, seed );

  r8ri_print ( n, nz, ija, a, '  The R8RI matrix:' );

  return
end
