get Random English Character - Java java.lang

Java examples for java.lang:String Random

Description

get Random English Character

Demo Code


//package com.java2s;

public class Main {
    public static char getRandomEnglish() {
        return (char) (Math.random() * 26 + 'A');
    }//from   w  w w . ja  va2s. co m
}

Related Tutorials