Method: Random::StringExtensions#at_rand

Defined in:
lib/standard/facets/random.rb

#at_rand(separator = //) ⇒ Object

Return a random separation of the string. Default separation is by charaacter.

"Ruby rules".at_rand(' ')  #~> ["Ruby"]


399
400
401
402
# File 'lib/standard/facets/random.rb', line 399

def at_rand( separator=// )
  #separator = self.class.patterns( separator )
  self.split(separator,-1).at_rand
end