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.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48241-6662e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48241-6662e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?