I want to add a algorithm that will randomly select sets of platformers for an infinite runner

I’m currently using Godot 4.2
I want to try and add an algorithm that can randomly select from a collection of different platform configurations and then spawn them into my game. I currently don’t have anything code-wise because I don’t know how I would write it.

I’m not sure how your project is structured, but the best way I can imagine is to use an array to store all the different platform configurations.

You can accomplish this by exporting an array, which allows you to add all the scenes for the different platforms to the array from the editor.

Then whenever you want to spawn a platform, you can randomly select an element from this array and spawn it!