cloneAndRandom<T> method
Implementation
List<T> cloneAndRandom<T>(List<T> array) {
List<T> 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;
}