結果 : two types of randomized algorithm