Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array in XXXX on line 14

la riga 14 è
$chiavi = array_rand ($input, 2);

va all'infinito sto ciclo..ora vedo di capirlo..
grazie comunque..