| Index: sdk/lib/_collection_dev/iterable.dart
|
| diff --git a/sdk/lib/_collection_dev/iterable.dart b/sdk/lib/_collection_dev/iterable.dart
|
| index 9e7b9902c8a67bda7d2aeef1b37d2f844c08e50b..edbbfd84c1801a00a19ad9ddd3a327ee1b65be11 100644
|
| --- a/sdk/lib/_collection_dev/iterable.dart
|
| +++ b/sdk/lib/_collection_dev/iterable.dart
|
| @@ -953,6 +953,17 @@ class IterableMixinWorkaround {
|
| Sort.sort(list, compare);
|
| }
|
|
|
| + static void shuffleList(List list) {
|
| + Random random = new Random();
|
| + int length = list.length;
|
| + while (--length > 0) {
|
| + int pos = random.nextInt(length);
|
| + var tmp = list[length]
|
| + list[length] = list[pos];
|
| + list[pos] = tmp;
|
| + }
|
| + }
|
| +
|
| static int indexOfList(List list, var element, int start) {
|
| return Arrays.indexOf(list, element, start, list.length);
|
| }
|
|
|