Thermal behaviour of buildings under random conditions