Use random sample for prefered hosts in server