added initial seed for randomize