Untitled
unknown
plain_text
a year ago
597 B
4
Indexable
string RefreshBot(int count) { if (count > 400) count = 400; vector<string> selectedBots; while (selectedBots.size() < count / 2) { string randomBot = bots[rand() % count]; if (find(selectedBots.begin(), selectedBots.end(), randomBot) == selectedBots.end()) { // Eğer seçilen bot vektörde yoksa ekleyin selectedBots.push_back(randomBot); } } string result; for (const string& bot : selectedBots) { // Boşluğu sil ve çıktıya ekle result += "`o" + bot.erase(0, 1) + ",``"; } return result; }
Editor is loading...
Leave a Comment