Add random algorithm.