class FortuneCookie
Constants
- FORTUNES
Public Class Methods
random_fortune()
click to toggle source
# File lib/fortune_cookie.rb, line 71 def self.random_fortune random = Random.new random_fortune = random.rand(FORTUNES.length - 1) FORTUNES[random_fortune] end