Random algorithm running added