For those who want a challange:

Write a program that generates a Minesweeper grid.
The program must ask the user how many lines, colons and mines the grid will have and then generate the grid.
Each tile that is not a mine must  be equal to the number number of surrounding mines just like in Minesweeper.

Output example:
http://i.imgur.com/BdZKbkh.png