Use C++11 random functions
Merge pull request #160 from dalkon/master

Use C++11 random functions