Untitled
unknown
c_cpp
a year ago
391 B
6
Indexable
#include "RandomNumberGenerator.hpp" #include <iostream> int main() { RandomNumberGenerator rng( static_cast< unsigned int >( std::random_device{}() ) ); std::cout << "Random integer number between 1 and 10: " << rng.getRandomInt( 1, 10 ) << '\n'; std::cout << "Random real number between 0.0 and 5.5: " << rng.getRandomReal( 0.0, 5.5 ) << '\n'; return 0; }
Editor is loading...
Leave a Comment