随笔-167  评论-65  文章-0  trackbacks-0
demo:

a = ['ruby','java','php','flex']

for i in a
  puts i
end

puts a[rand(a.size)]


ref:
http://nathanpowell.org/blog/archives/585



write by feng
posted on 2009-06-19 19:00 fl1429 阅读(269) 评论(0)  编辑  收藏 所属分类: Rails
已访问数:
free counters