[ create a new paste ] login | about

Link: http://codepad.org/TL8mU4fG    [ raw code | output | fork ]

Ruby, pasted on Jan 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
seqNum = 0
ranNum = rand(4)
extractedArray = []
compInsults = [
  ["are ","smell like ","look like ","walk like "],
  ["a small brained, ","a rather skinny, ","a slightly rotund, ","an overly red, "],
  ["apelike ","monkey nosed ","dophinesque ","dog haired "],
  ["buffoon.","twit.","clown.","moron."]
]

while seqNum < 4
	  extractedArray.push(compInsults[seqNum][ranNum])
	  seqNum += 1
end

puts "extractedArray contents: " + extractedArray.inspect
puts "String created: " + "You " + extractedArray.join(sep="")


Output:
1
2
extractedArray contents: ["smell like ", "a rather skinny, ", "monkey nosed ", "twit."]
String created: You smell like a rather skinny, monkey nosed twit.


Create a new paste based on this one


Comments: