randomMerge function
- String a,
- String b
Merge a
with b
and shuffle.
Implementation
String randomMerge(String a, String b) {
List<int> mergedCodeUnits = List.from("$a$b".codeUnits);
mergedCodeUnits.shuffle();
return String.fromCharCodes(mergedCodeUnits);
}