Talk:Pseudo-random number generator
Jump to navigation
Jump to search
Python code in the footnote
This code:
__import__('sys').setrecursionlimit(1<<m);print((λ m,l: (λ g,s: ('\n'*(2-l)).join(map(λ n: str((λ f: f(f))(λ f: λ c,i,o,p: (λ o: 'A('+s(m,n)+')='+str(o)+': '+', '.join(map(λ g: (str(len(tuple(g[1]))) if l else s(m,g[0])+': ('+','.join(map(λ g: '('+str(g[0])+','+str(g[1][1])+')',g[1]))+')'),__import__('itertools').groupby(sorted(enumerate(zip(c,map(λ i: g(n,i),range(1<<n)))),key=λ x: x[1][0]),key=λ x: x[1][0]))) if all(c) else f(f)(c,c.index(0),o,p+1))(o+(c[i]==p)) if c[i] else f(f)(c[:i]+(p,)+c[i+1:],g(n,i),o,p))((0,)*(1<<n),0,0,1)),range(1,m))))(λ n,i: i<<1&(1<<n)-1|i&1^i>>n-1,λ n,k: ' '*(len(str(n))-len(str(k)))+str(k)))(10,False))
probably should not be in a footnote, because it takes up too much room. Besides, it doesn't even work as Python code, since λ isn't treated the same way as lambda. ―squareroot12621 (talk) 12:46, 27 February 2025 (UTC)