What I'm trying to do here is more than the title suggests. I want to, at the start of the layout, give 16 instances of an object different integers ranging between 0 and 15 so I can change their colour accordingly (This means every instance of the object will have a different colour). What I have so far is this (capx):
However, when I run my game, the layout which this is for will not load. If I remove the flooring of the random it will, but then the colours generated can be too similar. How can this be achieved?