random number in groovy def d=new Date()print d.format("yyyyMMddHHmmss")Random random = new Random()random.nextInt(10 ** 3)