示例#1
0
 public static final int random(final int n, final int n2) {
   return n + MathUtils.RANDOM.nextInt(1 + (n2 - n));
 }
示例#2
0
 public static final int randomSign() {
   if (MathUtils.RANDOM.nextBoolean()) {
     return 1;
   }
   return -1;
 }
示例#3
0
 public static final float random(final float n, final float n2) {
   return n + MathUtils.RANDOM.nextFloat() * (n2 - n);
 }