![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
hu17889
这个作者很懒,什么都没留下…
展开
-
利用rand5构造rand7
Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer in the range 1 to 7. What is a simple solution? What is an effective solution to reduce memory usage or run on a slower CPU?原创 2010-12-04 22:54:00 · 1771 阅读 · 0 评论 -
位运算应用
参考链接http://www.cppblog.com/xiaoyisnail/archive/2009/09/19/96707.html转载 2011-04-05 16:33:00 · 578 阅读 · 0 评论