Python 2.7 random module ported to Python 3
