I tried to create an array and shuffle
it
You might be referring to the Make Array node here; shuffling that will not work well, indeed. Placing buttons in a proper Array of Buttons should do the trick, though:
Pre-Construct allows you to preview changes in the editor and will fire when the widget is created, too. A Custom Event can be hooked up to the same execution chain and executed run-time, if needed.