Add random seeds to tests per #1044
Move random seed prior to first random() call
Move away from random.random in favor of random.rand
Fix failing doctests
Merge pull request #1054 from blink1073/add_test_seeds

Add random seeds to tests per #1044

Additionally, change all `np.random.random` to `np.random.rand` calls, as the former are not affected by `np.random.seed`.