mob/verb/scramble(t as text)
if(!t||!istext(t))return t
var/tt
while(t)
world<<"t=[t]"
world<<"tt=[tt]"
var/p=rand(1,length(t))
tt+=copytext(t,p,p+1)
t=addtext(copytext(t,1,p),copytext(t,p+1))
return tt
Problem description:
Your supposed to input text, and it scrambles the text.
so i input "!!!!" i'd doesn't matter how much you scramble !!!! it will always end up as !!!!, but of course this code is returning !! or !!! or !.