Just a small example, what can you get with JavaScript AI Implementation. The Small Script here is generating randomized shapes and colors, among others, randomly generated Aliens for JS Game.
Every time you start the script, you are getting different results. Could be used in any other implementations, e.g. Business Logic.