Replace in place?

 From:  Frenchy Pilou (PILOU)
3974.6 In reply to 3974.5 
I want replace all objects with a family of other objects (who can be any number of objects) :)
example above was
5 red objects --> 5 green objects = 5 (family= one object)
5 red object -->3 cones + 2 green objects=5 (family=2 objects in order or randomly)

with dices that can be
5 red object --> 5 dices = 5 (but with any of the 24 possible positions family= 24 objects )

is that more clear? :)

EDITED: 13 Jan 2011 by PILOU