반응형 random divice1 5-2. C++ 난수 만들기 난수 만들기 (Random Number Generation) 실행할 때마다 다른 난수 생성하기 #include #include // std::rand(), std::srand() #include // std::time() using namespace std; int main() { std::srand(static_cast(std::time(0))); for (int count = 1; count 2024. 2. 5. 이전 1 다음 반응형