I could probably use the similar() function as posted 3 hours ago here. Thanks @gdalle.
similar()
I am still wondering wether a sprand() method taking two types in parameters would be useful though
sprand()