codecombat/codecombat — pull request #157 by shiyingzheng (2014-01-11 21:24:19+00:00)
Title: Randomized Thang Names #128

We added a function in world/rand.coffee to shuffle an array of numbers. We used this function to make a randomized ordering of the names for each Sprite. With this code, level editor will select random names for Thangs. When it runs out of names, it will suffix existing names with 2, 3, etc.