note 52335 deleted from function.rand by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: cezden 

----

Jawsper,

the problem is that in your method you get not more than

 RAND_MAX

'random' strings. (in fact they are not random in the set of all strings of given length) It's rather poor result when compared with goochivasquez's

strlen($keychars)^$length

number of strings.

In other words - it's little bit less complicated but far, far from achieving the goal.

cezden
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.