J
Jeff
het gang. Happy Holidays and stuff.
Here is what I am wanting to do, but need some guidance as hwo to start in
the right direction.
using sql db on ms server
i have players sign up for a tourney. easy
when the tourney begins, i want it to set teams. i have a number in the db
that tells how many on a team. ivarnum =
now, i need to script to count the number registered.. easy
then set by dividing by the preset variable will tell how many teams there
will be..
so say 21 players registered, and the ivarnum = 3, thus giving that there
will be 7 teams.
now i need to assign by a random script, who is on what team, so that 3
people are on each team.
i have a field in the db called t_team, this is an integer, so it will get
assigned a number 1-7, and that will be taht persons team for the tourney.
so how can i assign this random number between 1 and 7 (in this case) and
once 3 are choosen with the same number, it won't use it again?
does this make sense of what i want?/
any help would be appreciated.
Bam
Here is what I am wanting to do, but need some guidance as hwo to start in
the right direction.
using sql db on ms server
i have players sign up for a tourney. easy
when the tourney begins, i want it to set teams. i have a number in the db
that tells how many on a team. ivarnum =
now, i need to script to count the number registered.. easy
then set by dividing by the preset variable will tell how many teams there
will be..
so say 21 players registered, and the ivarnum = 3, thus giving that there
will be 7 teams.
now i need to assign by a random script, who is on what team, so that 3
people are on each team.
i have a field in the db called t_team, this is an integer, so it will get
assigned a number 1-7, and that will be taht persons team for the tourney.
so how can i assign this random number between 1 and 7 (in this case) and
once 3 are choosen with the same number, it won't use it again?
does this make sense of what i want?/
any help would be appreciated.
Bam