Loading

摘要: int blased_random() {//返回1的概率为0.1,返回0的概率为0.9; return rand() % 10 > 8 ? 1 : 0; } int unblased_random() {//等概率返回1,0; int a = 0, b = 0; for (;a == b;a = 阅读全文
posted @ 2017-04-27 10:19 lif323 阅读(318) 评论(0) 推荐(0)