gPWG is a GTK based password generation utility. gPWG allows you to create a completely random password or you can choose the password exact contents. Options include: number of passwords, random password length, allowed characters.
Here is pag, it is a password generator written in c. It can create passwords with numbers, signs or both together. You can set the length of the password. The program can create a list with x passwords or one pw to stdout - compiles under unix and win