Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
what is rand ?
2 ответов
+ 2
rand() is a function from <cstdlib> that returns a pseudo-random int between 0 and RAND_MAX (at least 32767).
Don't forget to initialize the seed with srand() before using it.
0
Thnx.