added additional random partitioning function

added rand_parts2, revised rand_parts1 -KL