function lambda = idempotent_random_eigenvalues ( n, rank, key )

%*****************************************************************************80
%
%% idempotent_random_eigenvalues() returns eigenvalues of the idempotent_random matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%    integer RANK, the rank of A.
%
%    integer KEY, a positive value that selects the data.
%
%  Output:
%
%    real LAMBDA(N,1), the eigenvalues.
%
  lambda = zeros ( n, 1 );

  lambda(1:rank,1) = 1.0;
  lambda(rank+1:n,1) = 0.0;

  return
end
