Stuck again :P

Can someone find an obvious error in this part?

Any help is greatly appreciated!

Thanks in advance! :)
PS: U guys rock!

1
2
3
4
5
6
7
8
9
10
11
	randomPick.push_back(randPick(1+rand()%7,1+rand()%7));
	for (int i = 0; i < skepp; i++)
	{
		addRand1 = 1+rand()%7;
		addRand2 = 1+rand()%7;
		if (addRand1 != randomPick[i].randnr1 && addRand2 != randomPick[i].randnr2)
		{
			randomPick.push_back(randPick(addRand1, addRand2));
			cout << "index: " << i << " (x Kordinat: " << randomPick[i].randnr1 << ")" << " (y kordinat: " << randomPick[i].randnr2 << ")" << endl;
		}
	}
Topic archived. No new replies allowed.