Skip to content

Instantly share code, notes, and snippets.

@kusano
Created February 14, 2021 13:48
Show Gist options
  • Save kusano/77517989fba0ef9ffe5f8ef3011250bf to your computer and use it in GitHub Desktop.
Save kusano/77517989fba0ef9ffe5f8ef3011250bf to your computer and use it in GitHub Desktop.
import random
url = "*******************************************************"
P = list(range(len(url)))
random.shuffle(P)
n = random.randint(0, 10**100)
print("P =", P)
print("n =", n)
def shuffle(A, P):
return [A[P[i]] for i in range(len(A))]
url = list(url)
for i in range(n):
url = shuffle(url, P)
url = "".join(url)
print("url =", repr(url))
P = [44, 10, 51, 19, 52, 6, 50, 37, 54, 28, 21, 4, 39, 20, 2, 14, 41, 33, 27, 47, 46, 26, 12, 53, 30, 45, 17, 9, 40, 18, 22, 5, 13, 49, 42, 1, 23, 0, 25, 8, 38, 15, 36, 48, 29, 16, 7, 32, 3, 43, 31, 35, 11, 34, 24]
n = 3537944106486801125155649656134775533156182452977359703205130657340880206428445301432948612127316920
url = 'ai8mt:/tq7kcat/b.reddpno_3i52/vac5/53iu7ps6k/tco8b8hs51'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment