Added random number generation using new c++ std.