class Randogen

Attributes

limit[RW]
lists[RW]

Public Class Methods

new(lists, limit) click to toggle source
# File lib/randogen.rb, line 2
def initialize(lists, limit)
   @lists = lists
   @limit = limit
end

Public Instance Methods

random_list() click to toggle source
# File lib/randogen.rb, line 7
def random_list
  lists.to_a.shuffle[0...limit]
end