Small inefficiancy fixed in uniqueid generator that means last number of range was always skipped