Spawn object on random

Hi, i need some help. Is there a way to make it that if something is colliding with object A. object A will be removed and randomly spawn or not spawn an object inside it(that also is randomly picked between different objects?)
If so, how can i do this the easiest way without to much scripting?