fix plus 1 error: randint(a, b) return value in [a,b], containing both endpoint