Added generateRandomPortNumber procedure.