Suppose I am developing an algorithm that needs a number that must be between two numbers and for those values it must always yield the same number. I moved that calculation to a new method because I use it repeated times.
My friend proposed I should call it "randomBetween(min, max)" but I argue that this would not be correct because it always returns the same value if I send the same arguments, so it isn't random.
Am I wrong?
Thanks
If you return the same number for the same arguments, your function is not a random number generator, it's just a mathematical function.