Пример #1
0
 def getRandomNode(self):
     from gtrackcore_memmap.util.RandomUtil import random
     index = random.randint(0, len(self._id2index))
     return self.getNode( self._id2index.keys()[index])
Пример #2
0
def getRandStrandList(size):
   return array([random.randint(0, 1) for i in xrange(size)], dtype='bool8')