Godot4 取随机值(随机数组内容) 发表于 2024-09-20 Godot 4.3 随机数组内容GDScriptC#12var arr:Array = ["hello", "hexo", "world"]arr[randi() % arr.size()]12private string[] arr = {"hello", "hexo", "world"}arr[GD.Randi() % arr.Length] 参考数学 - 随机数生成 - 《Godot 游戏引擎 v4.2 中文文档》 - 书栈网 · BookStack 相关链接Godot4 取随机数 | TheChuan1503’s Blog