The beginnings of a minesweeper library.
Also a random number function!