while len(available) > 0:
    taskindex = available.pop(random.randrange(0, len(available)))
task = GetTask(taskindex)
Is there a way to simulate python random.shuffle of a queue using a pseudorandom sequence or hash function?