Ategon@programming.devM to Godot@programming.dev · 3 months agoDaily 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 methodprogramming.devvideomessage-square4fedilinkarrow-up173arrow-down11
arrow-up172arrow-down1videoDaily 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 methodprogramming.devAtegon@programming.devM to Godot@programming.dev · 3 months agomessage-square4fedilink
minus-squareWerDei@lemmy.blahaj.zonelinkfedilinkarrow-up1·3 months agoThis 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.
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.