01-19-2011, 02:48 PM
Well I can give you an operation that would restrict a set of numbers to your range of 1 to 50, but it's probably not what you're looking for:
X mod 50 + 1
But that doesn't produce any sort of scale. It just gives you a number that's between 1 and 50 based on the remainder of X / 50.
X mod 50 + 1
But that doesn't produce any sort of scale. It just gives you a number that's between 1 and 50 based on the remainder of X / 50.