secrets.choice(range(n, m)) should be fine, since range is lazy on Python 3. n + secrets.randbelow(m-n) is another option.
確定! 回上一頁