Create random integers

This will create 10 random integers an put the in a list.

import java.util.Random
Random rand = new Random()
def randomIntegerList = []
(1..10).each {
randomIntegerList << rand.nextInt()
}

The randomIntegerList now could look like this.

[-817039539, 67822781, -1845751761, -1204189162, -1709064084, 1522902257, -1686144830, -1664319513, 878487503, -1051710713]