Skip to content

Instantly share code, notes, and snippets.

@jgv
Created July 1, 2010 22:21
Show Gist options
  • Save jgv/460652 to your computer and use it in GitHub Desktop.
Save jgv/460652 to your computer and use it in GitHub Desktop.
function randOrd(){
return (Math.round(Math.random())-0.5);
}
function cutup() {
var words = document.sorter.sorter2.value.split(" ");
words.sort(randOrd);
clean = words.join(" ");
document.sorter.sorter2.value = clean;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment