Java tutorial
//package com.java2s; public class Main { private static char getRandomNumChar() { return (char) (0x30 + (int) (Math.random() * (0x39 - 0x30 + 1))); } }