Skip to content

Instantly share code, notes, and snippets.

@markcmarino
Created February 26, 2020 18:58
Show Gist options
  • Save markcmarino/6f8e662cf5d130966acc8af1a016fb0c to your computer and use it in GitHub Desktop.
Save markcmarino/6f8e662cf5d130966acc8af1a016fb0c to your computer and use it in GitHub Desktop.
function anagram(text) {
return text.split("").sort(function () {return 0.5-Math.random()}).join("");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment