Fixed Data Generation Code

As it turns out, one needs to be wary of copy constructors
    in C++.  Fixed randomness not working as well.  Everything
    seems to be working now.  Later I will go through and
    comment and beautify my code.