It's been a while since I last used Javascript, but you'll want the split function to separate the words. Then you'll want to use the random function to make them appear in random places.
... View more

The language doesn't matter. The only prerequisite is that it can interface with controllers or at least send information to a device that can interface with one. For instance, you can write a Python script on a Raspberry Pi to calculate logic for a robot, then send binary information via USB to an Arduino, which is directly interfaced with a motor.
... View more