Last active
July 17, 2016 18:16
-
-
Save luben93/143e3a8cc8b0834000ecaa18cfca2021 to your computer and use it in GitHub Desktop.
ruby irb snippet for character customization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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