[ create a new paste ] login | about

Link: http://codepad.org/NqJgmyEi    [ 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
18
seqNo = 0
ranNo = rand(4)
finalInsult = []
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."]
]

4.times do
	finalInsult.push(compInsults[seqNo][ranNo])
	seqNo += 1
end

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


Output:
1
2
3
Array 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: