from random import * def randomPort(): x = randint(10000, 65535) print(x) randomPort() randomPort() randomPort() randomPort() randomPort() randomPort() randomPort() randomPort() randomPort() randomPort()