build/modelscript.umd.js
function(len, alphabet) {
                    len = this._v(len, "n");
                    alphabet = this._v(alphabet, "str", "abcdefghijklmnopqrstuvwxyz");

                    var lib = alphabet.split("");
                    var arr = this.sample(lib, len, true);

                    return arr.join("");
                }
function(len, alphabet) {
                    len = this._v(len, "n");
                    alphabet = this._v(alphabet, "str", "abcdefghijklmnopqrstuvwxyz");

                    var lib = alphabet.split("");
                    var arr = this.sample(lib, len, true);

                    return arr.join("");
                }
function ( len , alphabet ) { len = this . _v ( len , "n" ) ; alphabet = this . _v ( alphabet , "str" , "abcdefghijklmnopqrstuvwxyz" ) ; var lib = alphabet . split ( "" ) ; var arr = this . sample ( lib , len , true ) ; return arr . join ( "" ) ; }
Generate a random word of specified length using library of characters. Uses English alphabet if no library is specified
@param len Number of letters in this word
@param {string} alphabet to use
@returns {string} String of randomly selected characters from the alphabet
Generate a random word of specified length using library of characters . Uses English alphabet if no library is specified