Add xeinit7.cpp
This commit is contained in:
parent
6c4fb7f0f2
commit
c9ec7f07cd
|
@ -0,0 +1,12 @@
|
|||
#include <iostream>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
int x;
|
||||
srand((unsigned)time(NULL));
|
||||
x=rand();
|
||||
std::cout<<x<<" "<<x%2<<std::endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue