randomMerge function

String randomMerge (
  1. String a,
  2. 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);
}