function r8cbb_get_test ( )

%*****************************************************************************80
%
%% R8CBB_GET_TEST tests R8CBB_GET.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    23 July 2016
%
%  Author:
%
%    John Burkardt
%
  n1 = 3;
  n2 = 2;
  n = n1 + n2;
  ml = 1;
  mu = 0;
  na = ( ml + mu + 1 ) * n1 + 2 * n1 * n2 + n2 * n2;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8CBB_GET_TEST\n' );
  fprintf ( 1, '  R8CBB_GET gets a value of an element of an R8CBB matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N =     %d\n', n );
  fprintf ( 1, '  Matrix suborder N1 = %d\n', n1 );
  fprintf ( 1, '  Matrix suborder N2 = %d\n', n2 );
  fprintf ( 1, '  Lower bandwidth ML = %d\n', ml );
  fprintf ( 1, '  Upper bandwidth MU = %d\n', mu );
%
%  Set matrix to indicator matrix.
%
  a = r8cbb_indicator ( n1, n2, ml, mu );
%
%  Print matrix.
%
  r8cbb_print ( n1, n2, ml, mu, a, '  The R8CBB matrix to be queried:' );
%
%  Request random entries.
%
  seed = 123456789;

  fprintf ( 1, '\n' );
  for k = 1 : 10
    [ i, seed ] = i4_uniform_ab ( 1, n1 + n2, seed );
    [ j, seed ] = i4_uniform_ab ( 1, n1 + n2, seed );
    value = r8cbb_get ( n1, n2, ml, mu, a, i, j );
    fprintf ( 1, '  A(%d,%d) = %g\n', i, j, value );
  end

  return
end

