mahdi sadjadi

Results 3 issues of mahdi sadjadi

Changing `xrange` to `range` to make the code Python 3 compatible.

Fixed a typo : need -> seed

enhancement