DCGAN is initialized with random weights, so a random code plugged into your network would crank out a completely random image. Even so, as you may think, the network has millions of parameters that we are able to tweak, as well as aim is to locate a setting of those parameters which makes samples generated from random codes seem like the teaching