U E D R , A S I H C RSS

데블스캠프2006/월요일/함수/문제풀이/정승희

주사위
~cpp
#include<time.h>
#include <iostream>
using namespace std;
int a();
int main()
{
	srand((unsigned)time(0));
	cout<<a()<<" ";
	return 0;
}
int a()
{
	int i = rand() % 6 + 1;
	return i;
	
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:05
Processing time 0.0056 sec