강의

멘토링

커뮤니티

Inflearn Community Q&A

fashion05262067's profile image
fashion05262067

asked

[MMORPG Game Development with C++ and Unreal Series] Part 1: Introduction to C++ Programming

Lotto Number Generator

rand() 함수와 srand() 함수의 차이

Written on

·

710

0

두 함수는 어떤 차이가 있나요?!

예전에도 제대로 이해 못하고 넘어갔었는데 간단하게 설명 한번만 부탁드립니다 ㅠ

C++

Answer 1

1

Rookiss님의 프로필 이미지
Rookiss
Instructor

srand는 시드값을 설정하는 것이고 rand는 실제 랜덤값을 추출하는 함수입니다.
프로그래밍을 할 때 함수에 대한 설명은 그냥 구글에서 찾아보시는게 무조건 좋습니다.
아주 자세한 + 다양한 예제들이 있기 때문이죠.
아래 링크 참고 바랍니다.

https://blockdmask.tistory.com/308

fashion05262067's profile image
fashion05262067

asked

Ask a question