function r = r8_uniform_ab ( a, b )

%*****************************************************************************80
%
%% r8_uniform_ab() returns a scaled pseudorandom R8.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    31 July 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A, B, the minimum and maximum values.
%
%  Output:
%
%    real R, the randomly chosen value.
%
  r = a + ( b - a ) * rand ( 1, 1 );

  return
end
