choice<T> method
Selects a random element from a list.
Implementation
T choice<T>(List<T> items) {
return items[_random.nextInt(items.length)];
}
Selects a random element from a list.
T choice<T>(List<T> items) {
return items[_random.nextInt(items.length)];
}