Auto fill content field with random values
This should be done in a custom module by creating a custom field type

Good starting points would be either one of serial or unique_field modules and changing the logic of how the number is generated to match the logic described in your post