java 随机数

(int)(Math.random()* (max+1 - min) + min)

posted @ 2012-01-12 13:00  镇水古月  阅读(144)  评论(0编辑  收藏  举报