June 2017
Intermediate to advanced
532 pages
12h 59m
English
We will implement a procedure that prints a nice illustrating histogram of the numbers a random generator produces. Then, we will run all STL random number generator engines through this procedure and learn from the results. This program contains many repetitive lines, so it might be advantageous to just copy the source code from the code repository accompanying this book on the Internet instead of typing all the repetitive code manually.
#include <iostream> #include <string> #include <vector> #include <random> #include <iomanip> #include <limits> #include <cstdlib> #include <algorithm> using namespace std;
Read now
Unlock full access