function a = r8lt_random ( m, n )

%*****************************************************************************80
%
%% r8lt_random() randomizes a R8LT matrix.
%
%  Discussion:
%
%    The R8LT storage format is used for an M by N lower triangular matrix,
%    and sets aside storage even for the entries that must be zero.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 August 2015
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns of the matrix.
%    M and N must be positive.
%
%  Output:
%
%    real A(M,N), the R8LT matrix.
%
  a = zeros ( m, n );

  for j = 1 : n
    a(j:m,j) = rand ( m + 1 - j, 1 );
  end

  return
end
