shuffle-words
Shuffle the words in a string and optionally the letters in each word using the Fisher-Yates algorithm. Useful for creating test fixtures, benchmarking samples, etc.
Install
npm:
Install withnpm i shuffle-words --save-dev
Run tests
npm test
Usage
var shuffle = ; ;//=> 'baz foo bar'
Shuffle letters and words:
;//=> 'zba rba ofo'
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 02, 2014.