Answers for "java generate 5 digit random chars"

6

create a random char java

import java.util.Random;

public class RandomChar {
    public static void main(String[] args) {
        Random random = new Random();

        char randomizedCharacter = (char) (random.nextInt(26) + 'a');
        System.out.println("Generated Random Character: " + randomizedCharacter);

    }

}
Posted by: Guest on April-17-2021
1

generate 5 digit random string in java

RandomStringUtils.randomAlphanumeric(17).toUpperCase()
Posted by: Guest on September-01-2020

Code answers related to "java generate 5 digit random chars"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language