def getNumpyRandomGenerator(seed=None):
 if (seed is None):
  seed = int(((time.time() % 10000) * 10))
 print 'Numpy seed set to:', seed, 'called by',
 callStack = traceback.extract_stack(limit=3)
 print callStack[0][2], 'line', callStack[0][1], '->', callStack[1][2]
 return numpy.random.RandomState(seed)

def getNumpyRandomGenerator ( seed = None ) : if ( seed is None ) : seed = int ( ( ( time . time ( ) % 10000 ) * 10 ) ) print 'Numpy seed set to:' , seed , 'called by' , callStack = traceback . extract_stack ( limit = 3 ) print callStack [ 0 ] [ 2 ] , 'line' , callStack [ 0 ] [ 1 ] , '->' , callStack [ 1 ] [ 2 ] return numpy . random . RandomState ( seed )
return a numpy random number generator with the given seed .