I developed this function years ago, and it's never faulted me to this day. I use it in most of my applications - usually to spin content, and avoid spam traps.
I could have coded a simple spintax parser and released it free, but thought I'd release the code instead. Many people may find this...