fix DivideByZeroException in Random.Next()
Merge pull request #786 from xplicit/master

fix DivideByZeroException in Random.Next()