random.sample(xrange(lb), it)
when lb
is larger it throws
OverflowError: Python int too large to convert to C long
since xrange does need that in Python 2.7!
Is there a workout around to this?
I tried from a different post this:
import itertools
xrange = lambda stop: iter(itertools.count().next, stop)
But random doesn't like that:
TypeError: object of type 'callable-iterator' has no len()