var scene = rumahKecil[randi() % rumahKecil.size()]
get_tree().change_scene(scene)
That should pick one of the elements in your array, and then change to it.
hi ! it works, but when i pressed it. it alwasy give me the scene 3. do you know why?
szccornish | 2020-12-16 19:12
oh nvm… i put randomize() in the top… it works wonderfull… thank you so muchh!!
szccornish | 2020-12-16 19:17
Yep, calling randomize() is the correct solution. I meant to post that, but somehow missed it. And, you really just need to call it once for your entire application - like once in a _ready() function somewhere…