Attempt at recreating shuf since OS X doesn't ship with it.