示例#1
0
 public void getNewCoordinates() {
   x = (int) Math.floor(Math.random() * dim.adjW(900) + dim.adjW(100));
   y = (int) Math.floor(Math.random() * dim.adjH(675) + dim.adjH(100));
 }
示例#2
0
 private long getRandomAppearTime() {
   return (long) Math.floor(Math.random() * 180000 + 5000);
 }