Assigning material randomly

Hey sorry, i havnt touched grasshopper in about a year and dont really remember what im doing.

i found a couple of similar examples like this but i dont really know what im looking at.

i want to assign these cubes with a random coloured glass material

heres my file with the cubes, any help is really appreciated

model.3dm (5.7 MB)