the way I did it for my project was to have floor tiles that can have spikes. You can perfectly add the randomess factor to it.
I added an intance variable called fSpikesID
and I use system Pick to know which spike trap is being activated.
I can send you images of the code if you want