강의

멘토링

커뮤니티

Inflearn Community Q&A

yhj2169508's profile image
yhj2169508

asked

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

로또에서 srand 질문입니다.

Written on

·

181

1

로또만들때 Choose함수 안에 srand(time(0)); 를 넣을시

메인에서 Choose함수를 여러번 호출하면 같은값이 나오는데

메인에 처음에 srand(time(0));를 넣으면 다른값이 나옵니다!

차이가 뭔지 모르겠어서 질문드립니다.

C++

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

이전에 비슷한 질문이 올라온 기억이 있어 링크로 대체 드립니다!
https://www.inflearn.com/questions/474049

yhj2169508's profile image
yhj2169508

asked

Ask a question