random.randint(a, b) Return a random integer N such that a <= N <= b. Alias for randrange(a, b+1).
But in reality nowadays you almost always want to use the newer, simpler and more secure "secrets" module.
But in reality nowadays you almost always want to use the newer, simpler and more secure "secrets" module.