Skip Navigation

Daily Godot Tip #4: If you have an array of items that you need to pick a random thing from, Godot has a built in pick_random method

3

You're viewing a single thread.

3 comments
  • This function was so convenient, I wrote an extension function in c# that works in any c# collection, as well as one for the weighted random.