is there randint wrapper that can return multiple ints on one call
ii = int(round(quantumrandom.randint(1, upperLimit))) would be nice to return list or array of ints, something like this: ii = int(round(quantumrandom.randint(1, upperLimit, 10)))
Saves, calling with request and url libs over and over again ...
You can put it through a for-loop and pass the generator back. Basically like so:
import quantumrandom
upperLimit = 10
generator = quantumrandom.cached_generator()
nums = []
for x in range(10):
nums.append(quantumrandom.randint(1, upperLimit, generator=generator))
print(nums)
I'm maintaining a version of this @ identex/quantumrand (quantumrand on PyPi) that has this standard. My quick_dice and dice_roll functions do this already if you're looking for a whole number, along with randint returning a whole number and renaming the old randint to randfloat. I'm adding more to it to make it comparable to the random library, and if you have any suggestions for features I will be maintaining it.
Hi, thanks for response, I am using generator now and converting floats to ints so I am good for now! thanks