Merge branch 'emerge' of https://github.com/sofian/qualia into emerge
Tentative port of code to VS2010.
Use rand() instead of random().
Merge branch 'emerge'