Non puoi usare la funzione randomize?