Randomize widget?

I have a main menu with a ‘play’ button. Now, after pressing play, there’s a loading screen. I have 5 widgets for loading. Each one of them has a ‘fun fact’ on it. I want a ‘random’ node to call one of the five widgets just before the level starts loading. How do I do it?

Put the widgets in a list, get a random number between 0 and the number of elements in the list, then when opening the new widget use the index into the list to get your widget to open.

Can you put an example please? Would be much appreciated since I have no idea how to do that.

If you’re only wondering how to get a random widget to be created from an array of widgets, this function in a pure form would work perfectly fine (probably):

If you’re wondering how to create and manage a loading screen, there are a lot of different ways to do this and posted all over youtube =)

And how do I make the array itself?