Quantcast
Channel: User Michael Paulukonis - Stack Overflow
Viewing all articles
Browse latest Browse all 44

Answer by Michael Paulukonis for No Last Spintax Repeat

$
0
0

Keep things simple - the Spin function should generate spun text, and nothing else.Use some other function to do what you want.

Here's a quick wrapper to compare runs:

var prev = "";var getNewSpun = function(prevSpun) {     var newspun = Spin(text);        while (newspun == prevSpun) {       newspun = Spin(text);        }     return newspun; };prev = getNewSpun(prev); // this should be different every time

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>