摘要: 1、旧(Qt文档内说明不推荐使用) qsrand(QTime::currentTime().msec()); // 随机数初始化 qrand()%10; 2、新 // 使用方法例子 #include<QRandomGenerator> qint16 rand= QRandomGenerator::g 阅读全文
posted @ 2020-09-22 00:46 补码 阅读(2420) 评论(0) 推荐(0) 编辑