Solution is wrong, it misses 10 as nextInt(n) is not inclusive.
Should be maxInt+1
// ------------ START EDITING HERE ----------------------
def random = new Random()
[random.nextInt(maxInt+1), random.nextInt(maxInt+1)]
// ------------ STOP EDITING HERE ----------------------
Solution is wrong, it misses 10 as nextInt(n) is not inclusive. Should be maxInt+1 // ------------ START EDITING HERE ---------------------- def random = new Random() [random.nextInt(maxInt+1), random.nextInt(maxInt+1)] // ------------ STOP EDITING HERE ----------------------