Click to See Complete Forum and Search --> : need help with random text!


kalamata
01-07-2003, 10:48 AM
I would like to have a feature that takes quotations and scrambles the text to create new quotations. I want it to happen continuously, not just when a user enters the page. Here's an example:

Better sound through research

Itıs better with bacon

Better bacon through perfection

I love what you do for me

The relentless pursuit of perfection

I love bacon

It's love

The sound of bacon

Bacon is perfection

Love is perfection


Any help is much appreciated!

pyro
01-07-2003, 12:12 PM
What exactly do you want to do? Do you want to take pre-defined quotes and display them randomly to you page?? Maybe you could explain better...

kalamata
01-07-2003, 12:31 PM
I want to take pre-defined quotes, scramble the words, and display the variations on a continuously revolving basis.

So "Better sound through research"

and "It's better with bacon"

become... "Better bacon through research", etc.

pyro
01-07-2003, 12:36 PM
You could randomize the words, but you may end up with something like this

"It's sound through with"
or
"Better better with through"

Know what I mean? If you just randomize the words, what's to say that they'll be sentences when you are done?

kalamata
01-07-2003, 12:40 PM
I was thinking that too...

Maybe I could have a set list of rotating subject, verbs, objects?

Any suggestions?

pyro
01-07-2003, 01:29 PM
Yes, you could have a list of rotating subjects, verbs, and objects...Just make sure everything sounds good with everything. :D