static Pt randomPt() {
  ret randomPt(currentImage().getWidth(), currentImage().getHeight());
}

static Pt randomPt(BufferedImage img) {
  ret img == null ? null : randomPt(img.getWidth(), img.getHeight());
}

static Pt randomPt(MakesBufferedImage img) {
  ret img == null ? null : randomPt(img.getWidth(), img.getHeight());
}

static Pt randomPt(int w, int h default w) {
  ret new Pt(random(w), random(h));
}

static Pt randomPt(Rect r) {
  ret r == null ?: Pt(r.x+random(r.w), r.y+random(r.h));
}