python: Random number generator that doesn't return values in range of all previously returned numbers : My goal is to generate random numbers between (0,500), but any new numbers have to be at minimum 120 more/less than any previously returned values. I am using python in processing, it has the function - random(), which accepts 2 arguments and returns a random number between them. 