Correct usage of MathHelper.getRandom() so that the random variables are not stored in class states
Fix NPE with Lightning
Tweak log decay check