added random seed
code be here