Add random select function in GreedAI.