+ 2
How to generate unique random number in java using awt?
6 ответов
+ 1
Create a Button and TextField. Add ActionListener to Button, generate a number using Random class and set it to TextField.
+ 1
Aleksandrs Kalinins . Thanks.. but my question is how to generate 'unique' random number.. (i.e.) to avoid duplicates
+ 1
okay , Thank you 😊 Aleksandrs Kalinins
+ 1
Martin Taylor Thank you 😊
+ 1
Karthick Baskar The problem with your question is the use of the phrase "unique random number" which would imply using numeric values.
However, it sounds like you really want a "unique random value" which includes alphanumeric characters.