from random import * def echantillon(N,n): L=[] for i in range(N): L.append(randint(1,n)) return L