Hey —!
The "log" action is outside the "for each" condition.
See how they're at the same level?
Also, you should take a look at the Advanced Random object. It does, among other things, exactly what you're trying to achieve with less mess.
Hope this helps...
Cheers!