有一个关于如何"rand() is not cryptographically secure"的增编。我认为,这也值得一份增编,其中也提出了建议的替代解决办法。在2000万拉环中不选择小于100万的特定整数的概率p是(999_999/1_000_000) ** 20_000_000或2.06e-9。所以不选择任何整数的概率是.2%。28,958,579 interations. 32768 integers of expected 1mil with min 772, max 1001
显然,32,768是一