Ruby is fucking awful. The only thing it's notable for is being created by a Jap and adopted by brogrammers as the hipster alternative to PHP. If it was created by an old white guy, nobody would use it.
>>8
implying the white guy has done any successful programming language
Name:
Anonymous2012-02-08 3:28
write this shorter in ruby or python
#!/usr/bin/env python
## usage: randomline.py file numlines
from sys import argv
import random
f=open(argv[1])
line=f.readlines()
f.close()
try: c = int(argv[2])
except: c = 1
for q in range(c): print (line[random.randint(0,len(line))-1]).strip()