# File lib/facet/string/at_rand.rb, line 10 def at_rand(n=nil, separator=$/) separator = /\n+/ if separator == '' separator = /\s+/ unless separator n = n.to_i self.split(separator,-1).at_rand(n) end