using Random presentation with condition
I need to present trials randomly during the loop, but I don't want to repeat a condition more than 3 times. How could I process ?
For example : I present animals randomly (Cat or Dog), but I don't want Dog - Dog - Dog - Dog - Cat - Dog
Just repeat Dog 3 times max or less.