随笔-4  评论-4  文章-0  trackbacks-0

package youg;

import java.util.Date;
import java.util.Random;

public class hiden {
 public int rand()
 {
  int sta=1;
  
  //Date d=new Date();
  double time=System.currentTimeMillis();
  Random r=new Random();
  sta=r.nextInt((int)time%1000)%10;
  System.out.println(sta);
  return sta;
 }
 
 public static void main(String args[])
 {
  hiden h=new hiden();
  System.out.println(h.rand());
 }

}

posted on 2008-08-14 11:30 志遥 阅读(230) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: