public float pickTranslation(int n, float f) {
   return n * (f - 1.0f) * (random.nextFloat() - 0.5f);
 }
 public float pickScale() {
   return minScaleFactor + random.nextFloat() * (maxScaleFactor - minScaleFactor);
 }