ma quel rand() è una funzione di MySQL o di PHP?
è in tutti e due?