Camliar

Results 1 comments of Camliar

- 参考 [leetcode 470. 用 Rand7() 实现 Rand10()](https://leetcode-cn.com/problems/implement-rand10-using-rand7/)- - 方法:拒绝采样 - 思路:`random5`生成 `[0, 5]`每个数的概率是 $ \frac {1}{6} $, **使用两次** `random` 函数,**相乘**,找到等概率出现的 8个数就可以,不满足的数据排除掉 | | 0 | 1 | 2 |...