def getRandomRange(a, b, randfunc=None):
 range_ = ((b - a) - 1)
 bits = size(range_)
 value = getRandomInteger(bits, randfunc)
 while (value > range_):
  value = getRandomInteger(bits, randfunc)
 return (a + value)

def getRandomRange ( a , b , randfunc = None ) : range_ = ( ( b - a ) - 1 ) bits = size ( range_ ) value = getRandomInteger ( bits , randfunc ) while ( value > range_ ) : value = getRandomInteger ( bits , randfunc ) return ( a + value )
getrandomrange:long return a random number n so that a <= n < b .