code:

   #include <stdio.h>
#include <stdlib.h>
#include <time.h> #define random_1(a, b) ((rand()%(b - a)) + a)
#define random_2(a, b) ((rand()%(b - a + 1)) + a) int main(int argc, char **argv)
{
srand((int)time(NULL));
int arr[];
for(int i = ; i < ; i++){
arr[i] = random_1(, );
} for(int i = ; i < ; i++){
printf("%d\t", arr[i]);
} return ;
}

https://www.cnblogs.com/tonyc/p/7732119.html

最新文章

  1. js中replace的回调函数使用。
  2. 大学回顾和C与PHP之路
  3. select,poll,epoll的归纳总结区分
  4. C# Socket 入门3 UPD(转)
  5. 整理:Google jQuery 引用地址大全和方法(转)
  6. apache2.4配置虚拟目录
  7. cache 的设计与实现--转载
  8. 帮助中心 7D-我的私家设计师 设计师品牌服饰集成网 7D服装定制!
  9. fullcalendar日历控件知识点集合
  10. HTML解析原理概括(转载)
  11. Spring MVC 基础笔记
  12. C++学习-6
  13. 内存数据网格IMDG简介
  14. linux系统执行mysql脚本:Can&#39;t connect to local MySQL server through socket &#39;/tmp/mysql.sock&#39;
  15. [转]Java反射机制详解
  16. PHP之PSR
  17. (转帖)CentOS最常用命令及快捷键整理
  18. IntelliJ IDEA2018激活方法
  19. NGINX宏观手记(变量|配置)
  20. CSS :hover 选择器

热门文章

  1. RabbitMQ实战
  2. ActiveMQ Queue vs Topic vs VirtualTopic
  3. 结合模板导出PDF文件
  4. CentOS7搭建git服务器
  5. WEB安全工程师整理资料
  6. STM32+IAR 解决Error[Pe147]: declaration is incompatible with &quot;__nounwind __interwork __softfp unsigned
  7. ssh本机失败(ssh: connect to host localhost port 22: Connection refused)
  8. QT--初识
  9. pod-test
  10. pyspark AttributeError: &#39;NoneType&#39; object has no attribute &#39;setCallSite&#39;