Commit 98d446aa by Oliver Woodman

Allow seeding of RandomEvaluator.

This is useful for reproducibility in playback tests.
parent 194b4ae0
......@@ -115,6 +115,13 @@ public interface FormatEvaluator {
this.random = new Random();
}
/**
* @param seed A seed for the underlying random number generator.
*/
public RandomEvaluator(int seed) {
this.random = new Random(seed);
}
@Override
public void enable() {
// Do nothing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment