我正在寻找像Python的 random.randint() 这样的函数,它生成a和b之间的随机整数,但更有可能生成更接近a 的数字,只有少数更接近b。
有一个函数可以做到这一点吗?
python random
python ×1
random ×1