added random seed