C++로 랜덤 숫자 만들기
1
2
3
4
5
6
#include <time.h>
 
int randomValue() {
    srand((unsigned int)time(NULL));
    return (rand() % 100);
}