i need help here pliz in select 2 clan random seleccion

11/29/2011 06:19 thesamuraivega#1
Hi
i work in ClanWar and i need help here pliz
need help in select 2 clan random selection pliz
no work this...
Code:
List<Clans> clans = new List<Clans>(); 
foreach (KeyValuePair<uint, Game.Clans> clan in Conquer_Online_Server.ServerBase.Kernel.ServerClans)
                   [COLOR="Red"] clans.Add(clan);[/COLOR]
Random rand = new Random();
                    Clans clan1,clan2;
                    int selectedIndex = rand.Next(clans.Count);
                    clan1 = players[selectedIndex];
                    clans.RemoveAt(selectedIndex);
                    selectedIndex = rand.Next(clans.Count);
                    clan2 = players[selectedIndex];
                    clans.RemoveAt(selectedIndex);
                    selectedIndex = rand.Next(clans.Count);
I know I am wrong but it's just an idea

ty for help! :)