标签:随机数 技术 pos log and bubuko 随机 生成器 rand
int x; do { x=RANDOM() || (RANDOM() << 1) || (RANDOM() << 2); } while(x > 4); return x;
类似于枚举子集。
随机数生成器
原文地址:https://www.cnblogs.com/ZDHYXZ/p/8428255.html