Why does liquid and gases show random motion