ParentFull threadGeertJohan·Afaik it depends on the generate function you use. You can let it keep track of the increment when generating, at a performance cost (atomic operations).View on HN