support passing custom seed to random number generator

fixing a bug if opts[:seed] is nil
v1.0.0