Please download the source code and tell me what you think. If you have any problems with the code then ask questions here.
Here's the description:
With this Win32 console application you can generate random passwords. This code is a good example of how you can use rand () function and WINAPI functions for keyboard and mouse input. You have five options available for generating a password. You select which characters you want to have in your password (lower case letters, upper case letters, numbers or symbols) and you can regulate the password length. The length can be between 0 and 10 characters.
In the .zip file there are two files:
rpg.c - the main source file of the application
colors.h - my header for shorter names for console colors
You can modify and distribute this code if you want to.