added argument check
added pickRandom
added randomMatrix function