randF 등을 Util로 옮겼으므로 func.php에서 제거

This commit is contained in:
2018-03-28 04:58:57 +09:00
parent dc6596b5ab
commit ee4518fc5c
-14
View File
@@ -24,21 +24,7 @@ require_once('func_command.php');
/**
* 0.0~1.0 사이의 랜덤 float
* @return float
*/
function randF(){
return mt_rand() / mt_getrandmax();
}
/**
* $prob의 확률로 true를 반환
* @return boolean
*/
function randBool($prob = 0.5){
return randF() < $prob;
}
/**
* 로그인한 유저의 장수 id를 받아옴