Unique random function now throws an exception if it is requested to generate a value after all possible values have already been generated.