def randomRange(start=0, stop=1000, seed=None):
 if (seed is not None):
  _ = getCurrentThreadData().random
  _.seed(seed)
  randint = _.randint
 else:
  randint = random.randint
 return int(randint(start, stop))

def randomRange ( start = 0 , stop = 1000 , seed = None ) : if ( seed is not None ) : _ = getCurrentThreadData ( ) . random _ . seed ( seed ) randint = _ . randint else : randint = random . randint return int ( randint ( start , stop ) )
returns random integer value in given range .