I actually discovered that you can do it like: A=RND(150) A=A+50 So the minimum value is 50 and the maximum 200.