Herding stochastic autonomous agents via local control rules and online global target selection strategies