Added random seed option.