Effective properties of randomly heterogeneous beams