Skip to content

Instantly share code, notes, and snippets.

@luben93
Last active July 17, 2016 18:16
Show Gist options
  • Save luben93/143e3a8cc8b0834000ecaa18cfca2021 to your computer and use it in GitHub Desktop.
Save luben93/143e3a8cc8b0834000ecaa18cfca2021 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment