while true do thePad = movie.getinput(0,2) for k in pairs(thePad) do if (math.random() > 0.5) then thePad[k] = true end end joypad.set(thePad,2) emu.frameadvance() end