Fix get_ports.sh script
There were two errors: 1. get_random() function was returning random number with leading zeros that could lead the shell to interpret the number as octal value instead of decimal. The surrounding whitespace was also causing problems. 2. The calculation of the port was off, it was adding the whole range and not just the min port to the base.
Showing with 6 additions and 4 deletions