testing-repository/cpp/xeinit7.cpp

13 lines
191 B
C++
Raw Normal View History

2020-12-15 22:23:33 +08:00
#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;
}