jeudi 27 mai 2021

How to Generate 10 digit unique number sequentially in Java [closed]

I need to generate 10 digit unique number sequentially.

like my number should generate in below way.

0000000001 0000000002 0000000003 . . . . 0000000010 0000000011 . . . 9999999999

I have used java RandomStringUtils.randomNumeric(10); but I am getting some of the duplicate values.




Aucun commentaire:

Enregistrer un commentaire