Android examples for java.util:Random String
Returns a random upper case letter [ A-Z ].
//package com.java2s; import java.util.Random; public class Main { /**//from w w w . j av a 2 s. co m * Returns a random upper case letter [ A-Z ]. */ public static char randomLetterUcase() { Random r = new Random(); return (char) (r.nextInt(26) + 'A'); } }