博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
随机数生成函数
阅读量:4695 次
发布时间:2019-06-09

本文共 291 字,大约阅读时间需要 1 分钟。

1 #include
2 using namespace std; 3 4 int main() 5 { 6 //srand((unsigned)time(NULL)); 7 srand(int(time(0))); 8 for(int i = 0;i < 10;i++) 9 {10 cout << rand() << "\t";11 }12 return 0;13 }

 

转载于:https://www.cnblogs.com/mch5201314/p/11573357.html

你可能感兴趣的文章
数据库迁移工具
查看>>
不使用中间变量交换两个变量的值
查看>>
Mysql导入sql文件
查看>>
大道至简:软件工程实践者的思想——第六章感想 从编程到工程
查看>>
SharePoint 2010版本表
查看>>
【BootStrap】初步教程
查看>>
[bbk4397] 第1集 - 第一章 AMS介绍
查看>>
Track Active Item in Solution Explorer
查看>>
maven内置属性
查看>>
spring Aop2
查看>>
PHP float加减乘除
查看>>
等差素数列(2017蓝桥杯,二题 )
查看>>
Java开发工程师(Web方向) - 04.Spring框架 - 第5章.Web框架
查看>>
登录窗口抖动效果
查看>>
怎么样才能当老板
查看>>
Tomcat启动时报错:java.net.BindException: Permission denied <null>:80
查看>>
the resource is not on the build path of a Java project报错解决
查看>>
Mysql常用命令行大全
查看>>
深入理解 OUI(Oracle Universal Installer)
查看>>
springboots 配置文件
查看>>