srand((unsigned)time( NULL ));
randId = rand()%100;
strSql.Format("select top 1 * from exam_question where type = '%s' order by rnd('%d'-ID)",condition_next,randId);为什么读出来都是一样的随机数据,ODBC 读取ACCESS 数据库的随机数据有啥好办法吗?
randId = rand()%100;
strSql.Format("select top 1 * from exam_question where type = '%s' order by rnd('%d'-ID)",condition_next,randId);为什么读出来都是一样的随机数据,ODBC 读取ACCESS 数据库的随机数据有啥好办法吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货