Yeah, the problem is really that random.randrange() is slow, ultimately because _UserFriendlyRNG.read() collects entropy from the operating system on every read.
Yeah, the problem is really that random.randrange() is slow, ultimately because _UserFriendlyRN G.read( ) collects entropy from the operating system on every read.