random set functionality