ran.group function

Randomly mix grouped data and return function results