Applying random material to Curtain Wall panel

I’m trying to apply 1 of 3 materials randomly to a curtain wall panel. I can get as far as randomising 3x materials but I get an error setting the parameter and not sure what I’m doing wrong. Hoping someone can help?

I figured it out after searching harder. If this can be improved I would be glad to hear.