Exact solution for some statically undetermined stochastic bending beams