Skip to content

格式

typescript
Random.SetSeed(value)

所属类: Random

描述

设置随机种子值。

参数

参数名类型描述
valuenumber种子值

返回值

类型描述
void

代码示例

typescript
let random = new Random();
random.SetSeed(5);

let num = random.NextInt()
Debug.Log(num);