Text this: Linear and nonlinear stochastic distribution for consensus problem in multi-agent systems