vendredi 16 juillet 2021

what is %9000L while generating random number? [duplicate]

I am generating a random number using Random ran= new Random() long num=(ran.nextLong() % 9000L)+1000L; Can you Please tell me what does %9000L and 1000L do in this code. ThankYou.




Aucun commentaire:

Enregistrer un commentaire