Add a printMatrix() function that defaults to stdout.
Fix random number generation!