How to make a random loot box

So I ran into a problem, I need to make boxes with random loot in my game
image

Use a button, and when button pressed trigger a trigger. In the blocks when triggered:
broadcast message on channel random number 1-5. On 1: item granter grants a gadget different from 2 or 3 or 4 or 5.

good idea but i wait for more answers
anyway thanks @Toxic

somebody here

Hi.

Have you seen this guide?