随笔-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 阅读(215) 评论(0)  编辑  收藏 所属分类: Rails

只有注册用户登录后才能发表评论。


网站导航:
 
已访问数:
free counters