結果 : random search algorithm pseudocode