Hi Andrew
We’ll need a bit more info to be sure to help you properly. When you say “random”, are these random?
1, 2, 1, 1, 3, 1, 0, 010, 100
45, 45,000, 45, 45,000,000, -45, 4.5, -4.5, -0.45
In other words, can the numbers repeat? Can they be negative? Contain decimal values? In a specific range? Should zero be included? Are leading zeros required?
I’m not trying to be difficult, but within your simple question there are hidden “what ifs”
Personally, I use this library:
import org.apache.commons.lang.RandomStringUtils as RandStr