A random interacting network model for complex networks