Look at test_random_pairs, by setting the random seed you can get the same output.