First thought: ArrayMaker
by JeanFabrePut all your objects into a list, then do the following 5 times (use an int compare and add 1 each turn until the compare says x>=5 )
1) Array List Count, subtract one, and save as "Index" (int)
2) random int : min : 0 , max : "Index" ; and save that again as Index
3) Array List Get at index "Index" save to "Target" (gameObject)
4) Array List Remove At : "Index" ;
5) XXX
6) add int to X
7) compare X to 5
send event : "repeat" (or whatever)
Now whatever you want to do with that game object you can put in the same state at the bottom (where I put an XXX). Then use a send event to redo the state for the next game object. If your int x is higher or equal to 5 the loop is finished.
PS: If you need to run this multiple times you can create 2 array lists fill one and then use Array List Copy To to copy the content of the one to the other. Then you can work on the second "temporary" list.