creating Unique Ids

creating Unique Ids

what is the easiest way to create a unique id consisting of 6 numbers that are sequential that appear as the form is getting filled out. the ID needs to attach to each record created