Код: Выделить всё
unsigned seed;
seed = time(0);
srand(seed);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/46750707/rand-produces-the-same-result-on-each-function-call-with-srandtime0[/url]Код: Выделить всё
unsigned seed;
seed = time(0);
srand(seed);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/46750707/rand-produces-the-same-result-on-each-function-call-with-srandtime0[/url]