Prevent passing of non-POD types to POD-only interfaces:

This tidies up the code to produce random numbers to conform
to programming best practices and reduce dependencies.

* Use std::random_device instead of platform-specific code
* Remove RandomNumbers class and use free functions instead