Forum Thread: Trying to Figure Out Random Number Generation with a Vector...

So I have an assignment which requires me to create a random number generator with some specifics. I have to use "double r = (((double) rand() / (double) RANDMAX) (max - min)) + min ;"as my number generator, which is fine, but I have to do it using a vector, and as I have gone through 90% or more of the vector I have to reshuffle and start from the beginning. I can generate random numbers just fine with a vector, but can't get it to work with this prescribed code, and I have no idea how you l...

Next Page
Prev Page