A stochastic Prekopa-Leindler inequality for log-concave functions