Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

Randomly pick list of names

$
0
0
I wonder if anybody could help with a little program that i am trying to do

i have a list of 34 international Football (soccer) teams and i want to randomly pick them to go in to groups a bit like the world cup qualifying rounds, i have them listed in ranking.

Code:

Pot 1
Spain
Germany
England
Italy
Portugal
Holland
Russia
Greece

Pot 2
Switzerland
France
Belgium
Sweden
Denmark
Czech Rep
Norway
Romania

Pot 3
Hungary
Serbia
Rep of Ireland
Turkey
Bulgaria
Poland
Scotland
Wales

Pot 4
Albania
Austria
Finland
Iceland
N. Ireland
Cyprus
Luxembourg
Malta

Pot 5
Faroe Islands
San Marino

What i want is a little program that will pick each team from each pot and place them in groups (1 to 8), a bit like this

Group A,B,C,D,F,H
team from pot 1
team from pot 2
team from pot 3
team from pot 4

Group E,G
team from pot 1
team from pot 2
team from pot 3
team from pot 4
team from pot 5

As you can see it will end up with eight groups 6 with four teams and two with 5 teams

Can anybody help me with this

Thanks
Champions_2002

Viewing all articles
Browse latest Browse all 21843

Trending Articles