Forum Discussion

ikerstges's avatar
ikerstges
New Contributor
16 years ago

Generate positive long integer?

Hi, In some of my testcases, I need a random long integer. I've found these Groovy lines to provide me with such: Random random = new Random(); long randomVal = random.nextLong(); Those two ...