Text this: Learning Automata and Stochastic Optimization