rand for UnionDomain