function a = r8ut_random ( m, n )

%*****************************************************************************80
%
%% r8ut_random() randomizes an R8UT matrix.
%
%  Discussion:
%
%    The R8UT storage format is used for an M by N upper triangular 
%    matrix.  The format stores all M*N entries, even those which are zero.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 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 R8UT matrix.
%
  a = zeros ( m, n );

  for j = 1 : n
    k = min ( j, m );
    a(1:k,j) = rand ( k, 1 );
  end

  return
end
