Generate a random port number