java 随机数

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

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