RandomUtil类的命名空间为Com.Huawei.Game.Gobes。
Class Info |
|---|
public static class RandomUtils 伪随机数生成器。 说明 RandomUtil类的命名空间为Com.Huawei.Game.Gobes。 |
Method |
|---|
public static void InitSeed(long randomSeed) 初始化随机数种子。 |
Parameters
Name | Description |
|---|---|
randomSeed | 随机数种子。 |
- float seed = 1.0;
- RandomUtils.InitSeed((long)seed);
Method |
|---|
public static double GetRandom() 返回伪随机数。 |
Return
Type | Description |
|---|---|
double | 伪随机数,0~1之间的浮点数。 |
- RandomUtils.GetRandom();
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功