Skip to content

Instantly share code, notes, and snippets.

@luben93
luben93 / run_commands_in_irb.rb
Last active July 17, 2016 18:16
ruby irb snippet for character customization
atr = {hair: ['black','blond','red','brown'], shirt: ['blue','red','yellow'],pants: ['black','jeans','shorts'],gender:['male','female'], shoes:['sandals','sneakers','leather']}
atr.each do |name,type|
puts " #{name} #{type[Random.rand(type.size)]}"
end