Mistři v programování na #hovnokod

Ruby #321

<%products = Array.new
  count = Product.count(:conditions => "novelty = 'true'")
  while products.size < 10 do
    products << Product.find(:first, :conditions => "novelty = 'true'",:offset => rand(count))
    products.uniq!
  end-%>

HovnoKod,