Controlled Randomness Improves the Performance of Transformer Models