Learn how to create a key generator using C#
Code:
Random random = new Random();
TextBox.Text = "" + random.Next(from this number, to that number) + ...;
Simple. i only wrote that above as it's pretty self explanatory once you know the parameters...
This will generate a key code; though it will doubtingly work on any program, it could serve as a good Random Password maker...