Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
225 B
1
Indexable
Never
struct Card {
int x = 0, y = 0, type = 0;
};

vector<Card>cards;

vector<int> list{ 1918, 1920, 1922, 1924 };
int select = list[rand() % list.size()];
int count = std::count(cards.begin(), cards.end(), select);