getRandomElement<T> function
Implementation
T getRandomElement<T>(List<T> list) {
final random = Random();
var i = random.nextInt(list.length);
return list[i];
}
T getRandomElement<T>(List<T> list) {
final random = Random();
var i = random.nextInt(list.length);
return list[i];
}