function value = genunf ( low, high )

%*****************************************************************************80
%
%% genunf() generates a uniform random deviate.
%
%  Discussion:
%
%    This procedure generates a real deviate uniformly distributed between
%    LOW and HIGH.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 September 2014
%
%  Author:
%
%    Original FORTRAN77 version by Barry Brown, James Lovato.
%    MATLAB version by John Burkardt.
%
%  Input:
%
%    real LOW, HIGH, the lower and upper bounds.
%
%  Output:
%
%    real VALUE, a random deviate from the distribution.
%
  value = low + ( high - low ) * r8_uni_01 ( );

  return
end
