What shadooow gave is the fastiest way I can see to do it. it also works great as long as your number set is not dynamic. If you are building the number set in game them you will need to parse the string as the title implies. In that case I would add a dilimiter to the begining and end of the string just to simplify the search. in that case you could use something like this.
string sNumSet = ".2.42.65.69.103.";
int nNum;
do nNum = Random(200)+1;
while (FindSubString(sNumSet, "." +IntToString(nNum)+ "." ) !=-1);
Edit: It is inportant to note, that if your number set is static, what you are calling the long way is faster then having to parse the data.
Modifié par Lightfoot8, 30 avril 2011 - 07:56 .