[#116] Added random.setGenerator() and updated testcase.
Merge pull request #120 from LarryBattle/116_random_testcase

 [#116] Added random.setGenerator() and updated testcase.