How does Java generate unduplicated 8-digit numbers? Best time correlation

there is a table with a number associated with a machine, and there is a valid field in the table. Each machine can have many numbers, but there is only one valid
to generate an 8-digit number for each machine every day.
how to implement this number?
Please give us your advice!

Nov.17,2021

time is of timestamp type, combined with machine type, etc.
you can refer to the following article,
https://www.jianshu.com/p/e0d.

.
Menu