function r8st_random_test ( )

%*****************************************************************************80
%
%% r8st_random_test() tests r8st_random().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    22 September 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8st_random_test():\n' );
  fprintf ( 1, '  r8st_random() randomizes an r8st matrix.\n' );

  m = 5;
  n = 5;
  nz_num = 13;
  row = [ 1, 2, 3, 4, 5, 1, 2, 3, 3, 4, 4, 5, 5 ];
  col = [ 1, 2, 3, 4, 5, 2, 4, 2, 5, 1, 5, 1, 3 ];

  a = r8st_random ( m, n, nz_num, row, col );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order M         = %d\n', m );
  fprintf ( 1, '  Matrix order N         = %d\n', n );
  fprintf ( 1, '  Matrix nonzeros NZ_NUM = %d\n', nz_num );

  r8st_print ( m, n, nz_num, row, col, a, '  r8st matrix A:' );

  return
end
