This article is rated Stub-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||
|
Copyright review
editPer Welcome to the Jargon File, it is in the public domain--SPhilbrick(Talk) 15:39, 28 February 2013 (UTC)
Munch as python
editHere is munch written in Python (feel free to add to article if you think it useful):
import random
import turtle
y = random.randint(0,255)
width = 128 #power of two
kY = random.randint(0,width-1)
kT = random.randint(0,width-1)
for t in range(0, width):
for x in range(0, width):
y = ((x ^ ((t + kT) % width)) + kY) % width
print(x,y)
turtle.goto(x,y)