Random_shuffle problem


2004-10-26 11:43:16 AM
cppbuilder20
Hello,
I'm loading an array like so:
Randomize();
std::vector<int>numbers;
for (int i = 1; i <= questionCount; ++i)
{
numbers.push_back(i);
}
std::random_shuffle(numbers.begin(), numbers.end());
Unfortunately, my program always loads the array in the exact same order - even
though I've tried calling Randomize and setting randseed().
What am I missing?