Generating random functions (as opposed to random numbers)

Hi @kristoffer.carlsson, yes, I’m aware about the timing thing. About the collisions, is hash() any worse than rand() in regards to getting the same solution twice? And do you know if hashes are uniformly distributed in the whole UInt range? In any case, I really like @mike’s last solution, I think I’ll mark that as the answer.