How Randomness Improves Algorithms?