hi guys! as the title how to achieve random choice in godot engine :#
godot random choice
You use can use randi
and randf
to get random values. You can use randomize()
to get a random seed for the random generator. I think there is also a random range function, though I don't remember what it's name is.
Here's the docs page that shows some of the random functions (Godot 2.1 docs)
got it thanks <3
5 years later
Megalomaniak added the Godot Help tag .