[ Programing ]/STL & Booster
mt19937 Random
Mister_Q
2016. 6. 15. 17:58
// 선언
std::tr1::mt19937 engine;
// 초기화
engine.seed( (unsigned int)time(NULL) );
// 사용
int nMaxProb = 10000;
int nRandomProb = (int)( engine() % nMaxProb );
참고 : Mi_Q Kingdom :: [C++] mt19937 난수 생성기 (Random 클래스) (tistory.com)
[C++] mt19937 난수 생성기 (Random 클래스)
https://devmachine.blog.me/221240867011?Redirect=Log&from=postView [C++] 한줄 완성! 쉽고 직관적인 mt19937 난수 생성기 (Random 클래스) C++11 기본 난수 엔진 mt19937 예전에 mt19937 난수 엔진을 소개하는..
goguri.tistory.com