I started to work with CryEngine Sandbox eight years ago. (damn, already 11 years?) I also work with Game Maker.
In my game, buildings will randomly switch on/off lights according to the time of the day. So, most of the windows will be on during evening/morning and almost all will be off at night and during day.