added seed for the random() method