dist/index.js
function generate() {
    var rnum = Math.floor(Math.random() * 10);

    var mood = rnum <= 8 ? "good" : "bad";

    var sentences = [_sentence_mgr2.default.feeling(mood), _word_library2.default.warning(), nu.chooseFrom([_sentence_mgr2.default.relationship(mood), _sentence_mgr2.default.encounter(mood)])];

    // randomize (shuffle) the array
    sentences = nu.shuffle(sentences);

    // Select 2 or 3 sentences, to add to the random feel
    var num_s = Math.floor(Math.random() * 2) + 2;
    sentences = sentences.slice(0, num_s);
    sentences = sentences.join(" ");

    sentences += " " + _sentence_mgr2.default.datePredict();

    debug(sentences);
    return sentences;
  }
function generate() {
    var rnum = Math.floor(Math.random() * 10);

    var mood = rnum <= 8 ? "good" : "bad";

    var sentences = [_sentence_mgr2.default.feeling(mood), _word_library2.default.warning(), nu.chooseFrom([_sentence_mgr2.default.relationship(mood), _sentence_mgr2.default.encounter(mood)])];

    // randomize (shuffle) the array
    sentences = nu.shuffle(sentences);

    // Select 2 or 3 sentences, to add to the random feel
    var num_s = Math.floor(Math.random() * 2) + 2;
    sentences = sentences.slice(0, num_s);
    sentences = sentences.join(" ");

    sentences += " " + _sentence_mgr2.default.datePredict();

    debug(sentences);
    return sentences;
  }
function generate ( ) { var rnum = Math . floor ( Math . random ( ) * 10 ) ; var mood = rnum <= 8 ? "good" : "bad" ; var sentences = [ _sentence_mgr2 . default . feeling ( mood ) , _word_library2 . default . warning ( ) , nu . chooseFrom ( [ _sentence_mgr2 . default . relationship ( mood ) , _sentence_mgr2 . default . encounter ( mood ) ] ) ] ; // randomize (shuffle) the array sentences = nu . shuffle ( sentences ) ; // Select 2 or 3 sentences, to add to the random feel var num_s = Math . floor ( Math . random ( ) * 2 ) + 2 ; sentences = sentences . slice ( 0 , num_s ) ; sentences = sentences . join ( " " ) ; sentences += " " + _sentence_mgr2 . default . datePredict ( ) ; debug ( sentences ) ; return sentences ; }
Generate a three to four sentence horoscope.
@returns {*[]}
Generate a three to four sentence horoscope .