cloneAndRandom method

List cloneAndRandom(
  1. List array
)

Implementation

List cloneAndRandom(List array) {
  List<String> random_datas = [];
  for (var index = 0; index < array.length; index++) {
    random_datas.add(array[index]);
  }
  for (var index = 0; index < random_datas.length; index++) {
    random_datas.shuffle();
  }
  return random_datas;
}