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.
npm install 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.
``bash`
npm i shuffle-words --save-dev
`bash`
npm test
`js
var shuffle = require('shuffle-words');
shuffle('foo bar baz');
//=> 'baz foo bar'
`
Shuffle letters and words:
`js``
shuffle('foo bar baz', true);
//=> 'zba rba ofo'
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
*
_This file was generated by verb-cli on October 02, 2014._