1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { char mast[4] = {'s', 'd', 'c', 'h'}; for(int i = 0; i < 4; i++){ int i = rand() % 4; cout << mast[i]; } return 0; }
1
hcdh