用Array.shuffle生成随机值
Godot Engine 3.2Alpha2Godot内置了很多游戏开发常用的功能函数数组对象内置了一个shuffle()函数,顾名思义就是打乱数组的顺序,常用于构造枚举类型以及其它离散有限数据的随机,非常好用Shuffles the array such that the items will have a random order. This method uses the global rand...