C rand() 함수
Computer science/Programming 2009. 1. 8. 10:33 |rand()%2+1; // (0~2까지 +1) 그러므로 1~3까지
'Computer science > Programming' 카테고리의 다른 글
자료구조 - 연결리스트(쉬운 예제) (0) | 2009.01.30 |
---|---|
strcpy, strncpy, strlen, strcat, strncat, strcmp, strncmp, strchar, strstr, atoi, atof, atol, strtime (0) | 2009.01.20 |
tetris rotation algorithm (0) | 2009.01.09 |