easiest generation of a random number
#include
#include
int main()
{
srand( time(NULL) );
for(int i=0; i< 100000; i++)
std::cout << double(rand()) / RAND_MAX << "\t";return 0;
}
http://www.cppreference.com/stdother/rand.html
http://www.cppreference.com/stdother/srand.html