random_permute/1 and random_permute_reciprocal/1 implemented and tested.