随机产生一个小写字母

import java.util.*;
class test  
{
    public static void main (String[] args) throws java.lang.Exception
    {
    
        Random rand=new Random();
        char c=(char)(rand.nextInt(26)+'a');
            System.out.println(c);
    }
}

 

posted @ 2016-02-16 21:14  zerocoin  阅读(462)  评论(0编辑  收藏  举报