Update transition.js

Modified this to cycle through the random transitions without ever re-using the same transition during a cycle. For example, if you have 10 transitions set to random the script will check each number to see if has been used this cycle and if so will generate another random number. This ensures that no two same transitions will fire one after another, and maximizes variety.