From d179e328a058dba6782074c560b0853482dcc658 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 목, 11 11월 2021 17:53:57 +0900 Subject: [PATCH] Ongoing70 #3766 CF AOI Review 전설비 설정한 기준치 이상 Offset 적용시 경고 기능 추가 --- ReviewHistory/include/akCore/akRandom.h | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/ReviewHistory/include/akCore/akRandom.h b/ReviewHistory/include/akCore/akRandom.h new file mode 100644 index 0000000..d4e42ee --- /dev/null +++ b/ReviewHistory/include/akCore/akRandom.h @@ -0,0 +1,23 @@ +#pragma once + +#include "akCoreLinker.h" + +namespace akCore +{ +//#define GetRandom( min, max ) ((rand() % (int)(((max)+1) - (min))) + (min)) + + class AKCORE_DLLSPEC CakRandom + { + public: + CakRandom(void); + ~CakRandom(void); + + //정규분포, Normal, 가우시안... (다 같은말) + double Gaussian(float stddev, float mean); //stddev:평균, mean:표준편차 + + static int GetRandom(int min, int max); + + private: + static int ms_randomseed; + }; +} \ No newline at end of file -- Gitblit v1.9.3