Created by hug.
| 8 | * Created by hug. |
| 9 | */ |
| 10 | public class RandomInputSource implements InputSource { |
| 11 | Random r; |
| 12 | |
| 13 | public RandomInputSource(Long seed) { |
| 14 | r = new Random(seed); |
| 15 | } |
| 16 | |
| 17 | /** Returns a random letter between a and z.*/ |
| 18 | public char getNextKey() { |
| 19 | return (char) (r.nextInt(26) + 'A'); |
| 20 | } |
| 21 | |
| 22 | public boolean possibleNextInput() { |
| 23 | return true; |
| 24 | } |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected