Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The greatest and worst method evARR!!!

Name: Anonymous 2007-08-13 3:20 ID:ZlKPicRr

class String
    def random_caps
        letters = self.split("")
        letters.length.times do |n|
            letters[n] = letters[n].upcase if rand(4) == 0
        end
        letters.join("")
    end
end

created after total boredom.

discuss uses, etc.

Name: Anonymous 2007-08-15 2:05 ID:buK/UCAs

randomCase = mapM (if unsafePerformIO (randomR (0,4)) == 0 then toUpper else id)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List