def randlist(n, amp):
 ds = {}
 rng = []
 for i in range(10000):
  while 1:
   b = randint(50000)
   if (b not in ds):
    rng.append(b)
    ds[b] = 1
    break
 return rng

def randlist ( n , amp ) : ds = { } rng = [ ] for i in range ( 10000 ) : while 1 : b = randint ( 50000 ) if ( b not in ds ) : rng . append ( b ) ds [ b ] = 1 break return rng
randlist -> list of n unique random ints in [-amp .