It this thesis, we investigate the relation between second virial coefficient of gases and random averaged partition function. Small fluctuational force acting on any system may be regarded as random force. In this case, the partition function can be derived. Using this partition function, we calculate the second virial coefficient of Ar, $N_2$, $CO_2$, $H_2O$ and $CH_3CN$.