def sampler(a, b, size, frame):
     newlist = []
     list = Randoms.rand_list(a, b, size)
     for i in range(1, b):
         if i * frame < len(list):
             newlist.append(list[i * frame])
     return newlist
示例#2
0
 def sampler(a, b, size, outputSize):
     list = Randoms.rand_list(a, b, size)
     return Randoms.rand_N_selector(list, outputSize)