How can I retrieve a random element from a collection in Dart?
var list = [\'a\',\'b\',\'c\',\'d\',\'e\'];
import "dart:math"; var list = ['a','b','c','d','e']; list[Random().nextInt(list.length)]