Jessehk 20 Newbie Poster

This is a simple, but complete (pseudo) random password generator.

Examples of usage:

$ ruby pgen.rb
soovmuvytv
$ ruby pgen.rb --length=20
bynnugipyeeghdbihcdn
$ ruby pgen.rb --length=20 -n
v3ji3awj1trzjlda5oax
$ ruby pgen.rb --length=20 -np
:sa6vafpummpttjp?qo:

For complete usage guidelines, run $ ruby pgen.rb --help This (hopefully) serves as both a useful program, and a simple example of the use of the optparse module.

EDIT:Code fixed to correct error. Everything should be working now. :)