真正的随机数.cpp

来自「这是一个随机数生成程序」· C++ 代码 · 共 22 行

CPP
22
字号
// 真正的随机数.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream.h> 	
#include <time.h> 
#include "stdlib.h"
		
int main() 
{ 
	srand(time(0)); 
	for(int j=0;j<10;j++)
	{
		for(int i=0;i<=9;i++) 
			cout<<rand()<<" ";
		cout<<endl;
	}
		
	return 0; 
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?