added generateFragsV2, which ignores the count of fragments and tolerates some degree of error to the arget size