This commit is contained in:
2025-11-24 21:21:53 +08:00
parent 43177237a3
commit e7dc944e1c
3 changed files with 9 additions and 1 deletions
+7
View File
@@ -162,6 +162,13 @@ public:
{
return { Uint(p0[0], p1[0]), Uint(p0[1], p1[1]) };
}
/**
* @brief 返回百分比命中
*/
static bool Percent(int v)
{
return Int(0, 99) < 50;
}
//! 一般不使用,传给标准库接口才使用
static std::default_random_engine& GetEngine()
+1
View File
@@ -4,6 +4,7 @@ set "PATH_OUT=%2%"
set "PATH_RES=%PATH_RES:/=\%"
set "PATH_OUT=%PATH_OUT:/=\%"
echo 进行资源软链接,失败请以管理员模式启动ide
mklink /d %PATH_OUT% %PATH_RES%
::xcopy %PATH_RES% %PATH_OUT% /e /i /y