Type WorldScript 
Category Creative 

ID command

This block acts like a command block, except that it executes the command on structure spawn rather than redstone input. This is useful if you want to randomize special blocks or entities.

Note that the block block stores any number of weighted commands - a random one will be selected by the weight (likelyhood) on structure spawn.