function value = r8vec_is_distinct ( n, a )

%*****************************************************************************80
%
%% r8vec_is_distinct() is true if the entries in an R8VEC are distinct.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 March 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the vector.
%
%    real A(N), the vector to be checked.
%
%  Output:
%
%    logical VALUE is true if the elements of A are distinct.
%
  for i = 2 : n
    for j = 1 : i - 1
      if ( a(i) == a(j) )
        value = false;
        return
      end
    end
  end

  value = true;

  return
end
