function value = r8vec_is_in_01 ( n, a )

%*****************************************************************************80
%
%% r8vec_is_in_01() is true if the entries of an R8VEC are in the range [0,1].
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 March 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in A.
%
%    real A(N), the vector.
%
%  Output:
%
%    logical VALUE, is true if every entry of A is
%    between 0 and 1.
%
  if ( any ( a(1:n) < 0.0 | 1.0 < a(1:n) ) )
    value = false;
  else
    value = true;
  end

  return
end
