It doesn't quite fit your requirements but I have a modified version of an excel macro that generates passwords based upon a list of user names. We use it to generate userids & passwords for about 1000 students when the accounts are initialized in september. It uses letters from the first & last name to generate the first 4 letters & 2 random numbers for the last 2. The sheet also generates unique user id. We found that giving user ID & passwords based upon a formula from the student names helps because students remember them. With completely random passwords we were getting too many requests for the passwords. Several a class - daily in fact.
It comes from the MS Educational Communication Tool for NT server but we improved it.
As for randomizing - just experiment with the kixtart random number generator. You can play with the seed as well. If you really want, writing your own random number genertor is not very hard. Lots of examples on the web but for what you want the internal kixtart function is probably fine.
[ 16. October 2002, 19:53: Message edited by: Jack Lothian ]
_________________________
Jack