61
FoS Tourney Hall of Fame / hi
« on: September 25, 2012, 10:06 PM »
wtf is this forum
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Well, depends on regions.
On our side, telling someone is a "dindon" is a way to say "you suck" between friends. xP
THeDoGG, my advise is that do not try to make a function to generate unique description. Such things are not flexible and will cause even more trouble. For example:
1. What if you need to specifically change a description for whatever reason in the future?
2. What if you need to search within your nonsense description for whatever reason?
3. What if a description is really really crappy and you want to refresh it?
If it was me, I would create a totally random generating function and insert the output in the database. That way everything would be in my control.
May I ask why you need to do such thing? Filling page for SEO?
Do you mean that if the client reload the page all these word will change ?
Quote"random" description, but that would actually always be the same
it's not a random anymore ?
What language ? php ?
If I understood what you said this might help you.
A way i can think of is. Everytime there is a new entry in your db. Trigger it and run your "generateArandomNotSoRandomFunction" that will take in an array of premade random description and add it to a Map that has your id as a key and the index (or whatever you want) as the value. There are plenty of way of doing it (you can mix up everything in one array if you want to save data or use two array has i said if you don't mind data but use maybe more cpu depend if you aim something or not). Up to you.