WOW this was fast! For some reason its not working for me. weather i selected multiple objects or just one that has many children.
there are som errors in the console:
Traceback (most recent call last):
File "scriptmanager", line 17, in <module>
File "scriptmanager", line 8, in main
NameError: global name 'random' is not defined
>>>