v0.8 업데이트 #116

Closed
Hide_D wants to merge 209 commits from custom_map into devel
Showing only changes of commit 469fea321d - Show all commits
+17
View File
@@ -281,6 +281,23 @@ class Util extends \utilphp\util
return $dict;
}
/**
* key=>value pair를 보존한 섞기
*/
public static function shuffle_assoc(&$array) {
$keys = array_keys($array);
shuffle($keys);
foreach($keys as $key) {
$new[$key] = $array[$key];
}
$array = $new;
return true;
}
/**
* 0.0~1.0 사이의 랜덤 float