static DoubleList random(int n, double min, double max) { DoubleList l = new(n); repeat n { l.add(random(min, max)); } ret l; }