@Sunslayer Thanks for that way, I'm not familiar with all the regex stuff, so I'll stick with what I know.
@macs-rock Nope, I didn't, I've had a look at the way you did it, but you've done it in pretty much the most inefficient way possible.
@jaytea Well, of course I wasn't, but why copy other's scripts all the time, and nobody else on the Cael network(that I'm aware of) uses a password generator. Sorry for sharing.
Generates a hexatridecimal password for you. If you don't specify a length, it defaults to 20 characters, but you can choose anything up to 100. Obviously it's not hugely secure, because it's possible using a debug output to view the password being sent, but I've attempted to make it as secure as possible by using .notice as opposed to /notice or even /msg.