Help with VB project - Urgent
Posted: Wed Nov 30, 2005 11:50 am
Hi, guys. I've got a VB assignment due in for college soon but I don't quite know how to implement it.
I have to write a program using Visual Basic (I'm using 6.0) that sorts a list of students into 2 teams. It then has to randomize a list of students who will play each other in a series of games. Students can't play anyone in the same team or the same class as them. They can only play each game once and they can't play the same person twice.
I've got half of the program working. I already have the list of students including which team and class they are in. The problem lies in the randomization of the lists. I think I have to give each student on either team an index number. I'd then use that number to randomize another which will correspond to a student on the other team. The problem is that I don't know how to do it. Once I've got that working it's easy. But I can't get any further until I solve it.
Sorry if I've not explained clearly. I need help with this as soon as possible, so any help you can give would be appreciated
I have to write a program using Visual Basic (I'm using 6.0) that sorts a list of students into 2 teams. It then has to randomize a list of students who will play each other in a series of games. Students can't play anyone in the same team or the same class as them. They can only play each game once and they can't play the same person twice.
I've got half of the program working. I already have the list of students including which team and class they are in. The problem lies in the randomization of the lists. I think I have to give each student on either team an index number. I'd then use that number to randomize another which will correspond to a student on the other team. The problem is that I don't know how to do it. Once I've got that working it's easy. But I can't get any further until I solve it.
Sorry if I've not explained clearly. I need help with this as soon as possible, so any help you can give would be appreciated