How can I set a variable to a random number from X to Y?

X being the minimum limit of the randomization.
Y being the maximum limit of the randomization.