Hi @Matteo Balocco
A quick google gave me this thread:
http://stackoverflow.com/questions/4241300/simple-php-random-array
The relationship field will return an array of posts right? So, you can treat it much the same as in that above example.
Thanks
E