Randomly generate characters between A-Z

PHOTO EMBED

Mon May 17 2021 11:52:05 GMT+0000 (UTC)

Saved by @Muhammadcodes #java

Random r = new Random();
char c = (char)(r.nextInt(26) + 'a');
content_copyCOPY

https://stackoverflow.com/questions/2626835/is-there-functionality-to-generate-a-random-character-in-java