Stochastic Biochemical Networks In Random Environments: Probabilistic Modeling And Inference