fixed random number generation
Merge branch 'master' of https://github.com/MGM-KTH/infact