I want to generate random integers between 0-9 (inclusive on both ends), but I want to make sure it doesn’t often generate the same number consecutively. I plan to use the randint function from the random module. But I’m not sure if it will be handy. How often does random.randint generate the same number?
I want to generate random integers between 0-9 (inclusive on both ends), but I
Share
Why not wrap randint?