Hi, how to remove numbers from a range as they are drawn?

Example: RandomInRange(1,5)

First draw = 3 (removed from the next range)

Secund draw will be between numbers: 1,2,4,5. Secund draw = 4

Third draw will be between numbers: 1,2,5. Third draw = 1

Forth draw will be between numbers: 2,5. Third draw = 5

Last draw will give the remaining number: 2.

My range has more than five values so I would like to automate this operation.