public

  • Download Gist
Get random item from ruby array
1 2
@names = %w(Ninja Hero Sensei Champ Conquerer Hotshot )
@name = @names[rand(@names.length)]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.