Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#MonthOfCode - hello world
import random
graal = [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100]
binf,bsup = min(graal),max(graal)
k = 0
while( k<len(graal) ):
attempt = list()
for i in xrange(len(graal)):
attempt.append( random.randint( binf, bsup))
if (graal[k] ==attempt[k]):
print ' '.join( [chr(code) for code in attempt] )
k+=1
Owner

wkta commented Mar 3, 2014

screenshot available on twitter @spartangeek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment