 ]
 
 suffixes = [
-	"-OS"
-	"oid"
-	"us"
-	"vac"
-	"plate"
-	"-D2"
-	"-3P0"
-	"droid"
-	"lock"
-	"dance"
-	"-XOR"
-	"plex"
-	"tron"
-	"bolt"
+  "-OS"
+  "oid"
+  "us"
+  "vac"
+  "plate"
+  "-D2"
+  "-3P0"
+  "droid"
+  "lock"
+  "dance"
+  "-XOR"
+  "plex"
+  "tron"
+  "bolt"
   "rider"
   "spin"
   "stream"

]

adjectives = [
	"Mechanical"
	"Cyborg"
	"Zeta"
	"Optimus"
	"Alpha"
  "Omega"
  "Galaxy"
  "Star"

randomElem = (list) -> list[randomInt(list.length)]

module.exports = ->
  name = randomElem(prefixes) + randomElem(suffixes)
  name = name.replace "--", "-"
  r = Math.random()
  name = "#{randomElem adjectives} #{name}" if r < 0.2
  name = "#{name} #{randomElem end}" if r > 0.85
  name

