함 .
~cpp #include <iostream> // 함 iostream 포함 . #include <ctime> // time(0) 해 합. using namespace std; int main() { srand(time(0)); // rand() 합. // 하 행할 . -_-;; int x = rand(); // rand()함 한 하 함. // 하 0 ~ 큰 . int x1 = rand() % 10; // % 10 하 x1 10 // 0 ~ 9 하 . int x2 = rand() % 9 + 1; // % 9 하 0~8 // 1 하 1~9 . return 0; }