added random_seed option