Multiplying a huge number times random() (Python)
Measure whether it is fast enough for your purposes, “randomness” might diminish the more you call it: os.urandom(250). It produces a binary string aka bytes. To avoid “long int too large to convert to float” error don’t use floats. If you need an integer with k random bits instead of a binary string: import random … Read more