unirand now classmethod as suggested by @kmike