On a Class of Stochastic Languages