On a problem of random process programmed control