pickRandom<T> static method
- List<
T> elements
Implementation
static T pickRandom<T>(List<T> elements) {
return elements[rng.nextInt(elements.length)];
}
static T pickRandom<T>(List<T> elements) {
return elements[rng.nextInt(elements.length)];
}