Changing object between to materials

Greetings! I’m trying to make a cube change between 2 materials, I want to make that everytime I enter a trigger it picks 1 of the 2 materials randomly… any thoughs?

Nevermind! got it with a flip flop :stuck_out_tongue:

Wait, my instructor told me I cannot use flip flop…

Get a random int from range 1-2

If == 1 then use mat 1, if false (using a branch) then use Material 2

The problem with a flip flop is it will not be random, it will always switch.