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
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
You're viewing a single thread.
View all comments
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.
1 0 Reply