random number in groovy

def d=new Date()
print d.format("yyyyMMddHHmmss")
Random random = new Random()

random.nextInt(10 ** 3)

原文地址:https://www.cnblogs.com/lexus/p/2563396.html