Skip to content

Instantly share code, notes, and snippets.

@0x27

0x27/udpjoke.py Secret

Last active Apr 17, 2017
Embed
What would you like to do?
#!/usr/bin/python2
# coding: utf-8
import random
array = ['i', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 't', 'e', 'l', 'l', ' ', 'y', 'o', 'u', ' ', 'a', ' ', 'u', 'd', 'p', ' ', 'j', 'o', 'k', 'e', ' ', 'b', 'u', 't', ' ', 'i', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'n', 'o', 't', ' ', 'b', 'e', ' ', 's', 'u', 'r', 'e', ' ', 'i', 'f', ' ', 'y', 'o', 'u', ' ', 'w', 'o', 'u', 'l', 'd', ' ', 'g', 'e', 't', ' ', 'i', 't']
finalstr = ''
length = len(array)
for x in range(0, random.randint(0, len(array))):
finalstr += array.pop(random.randint(0, length-1))
length = length-1
print finalstr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment