Title / Description
Code Vn="S,B,L".scan(/\b/).size/2 MinLength=Vn+2 quan=0 A=["","","","","",""] until quan>4 do z="S" while z=~/['S']/ z=z.gsub(/[S]/,'aB') while z=~/['B']/ x=rand if x<0.5 z=z.gsub(/[B]/,'bB') else z=z.gsub(/[B]/,'cL') end end while z=~/['L']/ x=rand if x<0.33 z=z.gsub(/[L]/,'cL') elsif x<=0.66 && x>=0.33 z=z.gsub(/[L]/,'aS') elsif x>0.66 z=z.gsub(/[L]/,'b') end end end if z.length>=MinLength && 9>z.length && A.index(z)==nil puts z A[quan]=z quan+=1; end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code