LogicFlux Donkey Fucker Jul 7, 2008 1,054 23 0 Across 110th Street Jan 6, 2010 #21 Code: sub{for(my($t,$i,%h,@r)=$_[1];;){$_=$_[0];1 while(/{([^{}]+)}/ and @r=split(/\|/,$1) and s/{\Q$1\E}/$r[rand @r]/);!exists $h{$_}&&$_[2]->($_)&&$h{$_}++;last if (keys %h)==$t || ++$i>$t*100;}}->($spinStr,10,sub{print $_[0],"\n"}); You win.
Code: sub{for(my($t,$i,%h,@r)=$_[1];;){$_=$_[0];1 while(/{([^{}]+)}/ and @r=split(/\|/,$1) and s/{\Q$1\E}/$r[rand @r]/);!exists $h{$_}&&$_[2]->($_)&&$h{$_}++;last if (keys %h)==$t || ++$i>$t*100;}}->($spinStr,10,sub{print $_[0],"\n"}); You win.
gutterseo ▬▬▬▬▬▬▬& Feb 27, 2009 1,271 27 48 Jan 6, 2010 #22 Wow this thread has epenis win written all over it. Thanks for the code guys.
kblessinggr PedoBeard Sep 15, 2008 5,723 80 0 G.R., Michigan www.kbeezie.com Jan 6, 2010 #23 Ok, now someone do the same thing in Python lol