From 5afcd67470147a873c3b73e9785f0c78caa50890 Mon Sep 17 00:00:00 2001 From: Matthew Slowe Date: Fri, 29 May 2020 11:12:20 +0100 Subject: [PATCH] Increase maxtries to 5000 --- uk/org/mafoo/wordsearch/GridFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uk/org/mafoo/wordsearch/GridFactory.java b/uk/org/mafoo/wordsearch/GridFactory.java index 0639eb2..c91c729 100755 --- a/uk/org/mafoo/wordsearch/GridFactory.java +++ b/uk/org/mafoo/wordsearch/GridFactory.java @@ -6,7 +6,7 @@ import java.util.*; public class GridFactory { static Random rnd = new Random(); - static final int MAX_TRIES = 500; + static final int MAX_TRIES = 5000; /* https://www.math.cornell.edu/~mec/2003-2004/cryptography/subs/frequencies.html */ static DistributedRandomNumberGenerator drng = new DistributedRandomNumberGenerator();