package com.test;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Random;

/** 
 * @author QiaoJiafei 
 * @version 创建时间:2015年12月21日 下午2:53:44 
 * 类说明 
 */
public class TestSiSheWuRu {
    public static void main(String args[]) {

        TestSiSheWuRu t = new TestSiSheWuRu();
        System.out.println(t.getRandomHan());
    }
    Random ran = new Random();
    private final static int DATA = 0x9fa5 - 0x4e00 + 1;
      
    public char getRandomHan() {
        return (char)(0x4e00 + ran.nextInt(DATA)); 
    }

}

 

相关文章:

  • 2021-11-14
  • 2022-01-30
  • 2021-12-13
  • 2021-12-24
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2021-04-30
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
相关资源
相似解决方案