randomly selects action