Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bgegg |
extends Node2D
var a = [1,2,3,4,5,6,7,8,9]
func _ready():
randomize()
for i in range(9):
print(a[i])
this is not work shuffle.
how to use randomize?
Also, can randomize be done the same as the Fisher-Yates algorithm?