Stupid, stupid pseudorandom number generator. Python3