티스토리 뷰



#include "stdio.h"
#include "stdlib.h"
//랜덤 값 뽑아주는 라이브러리 사용을 위해 stdlib.h 포함시킨다.

void main() { 
    int i;
    srand(time(NULL));
    for(i = 0; i < 10; i++) {
                    printf("%d ", rand()%20+10);
                    //10부터 29까지의 난수를 10개 출력함.
    }
}


자세한 설명은 생략한다.



저작자 표시 비영리 변경 금지
신고
공유하기 링크
태그 클라우드
, , , , ,
프로필사진

Yowu (Yu Yongwoo)

My MBTI type is ENTP. (Of course I do not believe it 100%, but I want to do that) I use Node.js to develop the backend. I use Ubuntu Linux as my development environment, and I love Vim. I am interested in open source and are keen to contribute. I have a bachelor's degree in computer science from Catholic University and now a software engineer at Plating Inc., I spent about 5 years developing and learning, and I am still interested in software development and culture. Recently, I am interested in React, Serverless structure, Domain Design Driven. Sometimes I play drums in the band.