Generate UUID v4 or time-ordered UUID v7 in batches.
v4 UUIDs are random (122 bits of entropy from crypto.getRandomValues).