Randomizing a Combination of visual and olfactory stimulation

This is the closes thing I can see to what you want to do that may help. I am not brilliant with the code components though, but this looks close enough.