penso che intendi rand(); non rnd
cmq grazie