set seed to make it reproducible

set a seed will make it more reproducible.