namespace SepCore.CustomComponent { /// /// 本局共享随机数接口。 /// 同一单局的地图生成、敌人 AI、逃跑和敌人掉落依次消费同一个实例; /// 战斗不能根据 EncounterId、回合数或当前时间重新播种。 /// public interface IRunRandomSource { /// /// 返回 [minInclusive, maxExclusive) 范围内的随机整数。 /// int NextInt(int minInclusive, int maxExclusive); /// /// 以千分比概率判定是否成功;RollPermille(0) 必失败,RollPermille(1000) 必成功。 /// bool RollPermille(int successPermille); } }