Random change for simulate mode
When running in simulated mode, randomly change inputs at each watching interval to make the simulation more dynamic.
This is the first time I use CoffeeScript, so I hope my proposal is OK. I tested the translation to .js and it seems to be OK.
The code looks working but I don't know if we really should change the state at this place. I'd suggest to do this externally (in your custom code).
I understand your idea and why it could make sense to do it externally.
The idea of doing it internally is to have a simulate mode that is changing state on its own, to look more like a real system. This would allow to use the same code when simulatibg or not.
I can add a parameter to control this feature that would default to the previous behavior.
If you really prefer to keep this out of logo.js, I guess I can put this code in the state event to reach the same result.
What do you prefer?
PS: I won't be able to update the pull request with a parameter before tonight..