Entropy and dynamics of random networks