Watch this Author's files
It served my purpose completely. There is now a more sophisticated function inspired by this file, "Generate maximally perceptually-distinct colors".
This is very helpful. However there is a certain scenario in which it is not working for me. I have two .exe files in the same folder and I wish to hide the command window for both of them. Is there a way to do this?