标签:bsp 生成 clu env unsigned char sig loop turn
#include "stdafx.h" #include <stdlib.h> #include <time.h> // 生成随机数 - 100到200 int main(int argc, char *argv[], char **envp) { srand((unsigned)time(NULL)); int nLoop = 0; while (nLoop < 20) { int i = 100 + rand() % 100; printf("%d\n", i); ++nLoop; } return 0; }
标签:bsp 生成 clu env unsigned char sig loop turn
原文地址:https://www.cnblogs.com/huafan/p/11553108.html