// Note: possible catastrophic change since 2019/07/24
// (submit now returns the score)
sclass AIStrategy_RandomWithVariation extends AIStrategy {
F0 random;
F1 vary;
public bool step() { go(); false; }
void go {
submit(guess());
}
A guess() {
A a = null;
if (odd(round++) && vary != null && best.has())
a = callF(vary, best!);
if (a == null)
a = callF(random);
ret a;
}
}