Commit 53670eb6 authored by Буров Антон Алексеевич's avatar Буров Антон Алексеевич
Browse files

Add new file

parent 60a1a5ad
Showing with 21 additions and 0 deletions
+21 -0
# A=36 P=10^-4 V=15pas/min T=2week
# S*=(V*T)/P=(15*60*24*7*2)/10^-4=302400/10^-4=3024*10^6
# L=Ln(S)/Ln(A)=Ln(3024*10^6)/Ln(36)=6
# A^L=36^6=2176782336
# S*<=A^L
import random
array=[]
password=[]
i=0
while i<10:
array.append(i)
i+=1
alpha = 'a'
for i in range(0, 26):
array.append(alpha)
alpha = chr(ord(alpha) + 1)
while len(password)<6:
password.append(random.choice(array))
print(password)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment