static Pair ai_bestScoringRandomThing_nAttempts(long n, IF0 maker, IF1 scoringFunction) { new Best best; for ping (long i = 0; i < n; i++) { A a = maker!; double score = scoringFunction.get(a); best.put(a, score); } ret best.pair(); }