Skip to content

Instantly share code, notes, and snippets.

@wkta wkta/

Created Mar 3, 2014
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] )

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.