|
Assignment 1
1. In this assignment, we will be writing Generators that produces random values on an open-ended interval between two given numbers. As a baseline, use the following ubiquitous kernel for numbers between 0.0 and 1.0:
double(rand()) / (double(RAND_MAX) + 1.0);
to write a "standard" random number generator. To get srand(time(0))
at the beginning of the application (which will require the inclusion of
2. Use
3. Sort the vector from (2) using 4. Calculate the average and standard deviation of all random numbers in the vector. (You get to figure out which generic algorithms to use).
5. Select two boost random number generators and use the 6. How well does each random number generator perform and how can you tell? Would the choice of the bounds make a difference? |