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();
2021-10-15 21:43:16 +08:00
std::cout<<x%2<<" "<<x<<std::endl;
2020-12-15 22:23:33 +08:00
return 0;
}