Update rand
Update rand

Re-ordered the failover order and switched perl and python to native loops, both for performance.  The switch to ksh now has this passing shellcheck linting tests.
rawiriblundell/scripts,rawiriblundell/scripts