support random seed
make rubocop happy
add tests for the random permutation
prep for 1.2.0