Hi guys im trying to write a program this is the basic spec

2 teams of 11 to be picked at random

and 4 reserves

there are 40 people to chose from.

I am seriously stumped here as I have to pick the two teams, I managed to write a rancom number gen to pick the one team but how do I write the second random number generator to skip the numbers that have already been picked? any ideas?

please give some example code :()