function r8crs_random_test ( )

%*****************************************************************************80
%
%% r8crs_random_test tests r8crs_random.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 March 2009
%
%  Author:
%
%    John Burkardt
%
  n = 5;
  nz = 12;
  col = [ ...
    1, 2, 5, ...
    2, 5, ...
    1, 3, ...
    1, 4, ...
    2, 3, 5 ];
  row = [ 1, 4, 6, 8, 10, 13 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8crs_random_test\n' );
  fprintf ( 1, '  r8crs_random randomizes a R8SR matrix\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N = %d\n', n );
%
%  Set the matrix.
%
  val = r8crs_random ( n, nz, row, col );
%
%  Print the matrix.
%
  r8crs_print ( n, nz, row, col, val, '  The R8CRS random matrix:' );

  return
end
