from math import hypot from random import expovariate from itertools import permutations, starmap from collections import Counter trials = 1_000_000 n = 5 lambdas = [1.0E-3 ** exp for exp in range(n)] for i in range(10): print(Counter(len(set(starmap(hypot, permutations(map(expovariate, lambdas))))) for i in range(trials)))