Add ability to set the random seed (to make results deterministic)