remove boost::random_device, move min/max out of the random generator loop