大约有 10 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0036 秒)
... Rand Class Rand Rand 类用于通过32位无符号整型随机种子创建随机数。 Hierarchy Rand Index Constructors constructor Properties seeds Accessors seed Methods getFloat getSignedFloat getUint getByteFromInt getFloatFromInt Constructors constructor new Rand(seed: number): Rand Defined i...
来源: Laya3.0_api 发布时间: 20231115
.../math/RandX" RandX Class RandX Rand 类用于通过128位整型种子创建随机数,算法来自:https://github.com/AndreasMadsen/xorshift。 Hierarchy RandX Index Constructors constructor Properties defaultRand Methods random randomint Constructors constructor new RandX(seed: any[]): RandX Defined...
来源: Laya3.0_api 发布时间: 20231115
...tanceRand Object Rand 类用于通过32位无符号整型随机种子创建随机数。 Public Properties PropertyDefined By seed : uint 获取随机种子。 Rand seeds : Uint32Array获取随机种子。RandPublic Methods MethodDefined By Rand(seed:uint) 创建一个 Rand 实例。 Rand...
来源: laya_api 发布时间: 20170929
...tanceRand Object Rand 类用于通过32位无符号整型随机种子创建随机数。 Public Properties PropertyDefined By seed : uint 获取随机种子。 Rand seeds : Uint32Array获取随机种子。RandPublic Methods MethodDefined By Rand(seed:uint) 创建一个 Rand 实例。 Rand...
来源: Laya2.0_api 发布时间: 20190513
...s RandXInheritanceRandX Object Rand 类用于通过128位整型种子创建随机数,算法来自:https://github.com/AndreasMadsen/xorshift。 Public Properties PropertyDefined By defaultRand : RandX[static] 基于时间种子的随机数。RandXPublic Methods MethodDefined By RandX(seed:Ar...
来源: laya_api 发布时间: 20170929
...s RandXInheritanceRandX Object Rand 类用于通过128位整型种子创建随机数,算法来自:https://github.com/AndreasMadsen/xorshift。 Public Properties PropertyDefined By defaultRand : RandX[static] 基于时间种子的随机数。RandXPublic Methods MethodDefined By RandX(seed:Ar...
来源: Laya2.0_api 发布时间: 20190513
... 个回复 w1114367261 赞同来自: Math.random()返回0~number-1之间的随机数 和Random类似 2018-04-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 yzbgyc 相关问题 微信关系链:LayaAir引擎针对微信小游戏好友...
来源: Laya_社区 发布时间: 20180410
...} //在地板上面添加物品 _proto.addItem = function(){ //创建一个随机数 var m = parseInt(Math.random() * 10); //如果随机数小于5 我们就不添加了 主要是怕道具太多了 if(m < 5)return; //添加的数量 var addNum = 0; //计算一下道具最大数量 我们强制道...
来源: Laya_社区 发布时间: 20160803
...; Sprite randRange(minNum:*, maxNum:*):int[static] 生成指定范围的随机数 AdvImage reCache():void在设置cacheAs的情况下,调用此方法会重新刷新缓存。Sprite removeChild(node:Node):Node 删除子节点。 Node removeChildAt(index:int):Node 根据子节点索引位置,...
来源: Laya2.0_api 发布时间: 20190513
...m: number): number Defined in laya/ui/AdvImage.ts:160 生成指定范围的随机数 Parameters minNum: number 最小值 maxNum: number 最大值 Returns number Globals "laya/ui/AdvImage" AdvImage constructor _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawto...
来源: Laya3.0_api 发布时间: 20231102