add random_algorithm