Made number of ports more random.