Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);

    }

}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #create #random #char #java
ADD COMMENT
Topic
Name
8+7 =