void main() { List<int> list = [1, 2, 3]; list.shuffle(); print(list); // prints [2, 1, 3] as example }