how i swap randomly five diffrent block (consider that block hase diffrent color)

108391-capture.png

I want to swap with another block before spawning it consider that block has different color @hexagonius