Perhaps using $0 might be better then as it is unique and automatically
assigned.
But $0 itself is deterministic--the first instance is 1003, the second is 1004, etc.