Platform/util

난수 - C

jjryu 2009. 4. 4. 17:40

스레드 별로 작동하는 것 같음


srand(time(NULL));

int num = 0;
num = rand() % 10;


참조 사이트: