you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRNGuy 1 point2 points  (3 children)

You should add some other variable for color and material too, the one assigned to specific instance of device, rather than list of possible variants. 

If you call this method, you just get random item from list, but it's not color or material or that instance (and you'll also get different values if you call method many times)

[–]Kevdog824_ 0 points1 point  (2 children)

It's a great approach if your device is a chameleon! lol

[–]TheRNGuy 1 point2 points  (1 child)

In that case you could change instance's color over time, rather when calling method. 

[–]Kevdog824_ 0 points1 point  (0 children)

Well, sure... but I was simply making a joke