I want to generate a "random" number between a range, but I need the "random" number to always be the same, according to the parameter (Not exactly "random" :)
With a function like:
getRandomInRange(min, max, index)
This needs to be the result:
a = getRandomInRange(100, 600, 1) -> 432
b = getRandomInRange(100, 600, 32) -> 164
a = getRandomInRange(100, 600, 1) -> 432
b = getRandomInRange(100, 600, 32) -> 164
Calling the function with the same index should produce the same value, but the returned number shouldn't necessarily be higher because the index is higher or lower because the index is lower. It should be as random as possible.