Generate a pair of random numbers

User Gianfranco Torres has sent us the following question:

I need to generate a random number from 1 to 3 and then generate another random number from 1 to 3 different from the first random number