Avatar generation - no code, just thinking
Posted: Thu Aug 05, 2004 5:28 pm
This is the idea to create an avatar, so just to consult with experts>
If I create a list of 10, 20, 30 weird words and use random function - I get what I want, BUT...
I was wondering to do it this way, so just to see if this is not taking too much resources.
I declare an array A - Z a-z 0-9
and use 3 random functons to get $a, $b, $c from the same array
then I join $a.$b.$c and echo them as a new variable.
What is faster and more reliable. Somehow I think that the secong method is better because number of possible combinations software can generate is over 300.000, I would never write so much combinations (even no more than 100) for the first method)
And I heard of Image as avatar - but I read doc's and didn't got a thing - so if someone has a sample code (that is willing to share) I would be more than greatefull.
Any suggestions, thanks !
If I create a list of 10, 20, 30 weird words and use random function - I get what I want, BUT...
I was wondering to do it this way, so just to see if this is not taking too much resources.
I declare an array A - Z a-z 0-9
and use 3 random functons to get $a, $b, $c from the same array
then I join $a.$b.$c and echo them as a new variable.
What is faster and more reliable. Somehow I think that the secong method is better because number of possible combinations software can generate is over 300.000, I would never write so much combinations (even no more than 100) for the first method)
And I heard of Image as avatar - but I read doc's and didn't got a thing - so if someone has a sample code (that is willing to share) I would be more than greatefull.
Any suggestions, thanks !