Statistical simulation of atomic data in opacity calculations