PHP: Loop code to echo 'REPEAT' when random string has already been generated?

HELP PLEASE!
What is a code that will keep executing a function ( genRandomString(); ) until it returns a string that has already been returned? Understand? (I want a php code that test how many times it takes to generate a string that has already been generated) Hints: Array, Loops, etc.


LARGE THANKS IN ADVANCE!
 
Back
Top