Class for random set generation.