FreakyGirl
Member
Hello
I have an upcoming raffle that i need to distribute the tickets amoung the players equally.
For every 25% of the tickets there are 5 prizes to be won so a player has to have tickets in each range.
ie: 3253 tickets total. divided by 4 = 812.25 so for every 812 tickets theres 5 prizes.
last year some players had 20 tickets in 1 group & only 5 in another which is why its being changed for this year.
ie: PLAYER_A has 49 tickets total.
last years method:
10000-10999 group player had 17 tickets
11000-11999 group player had 12 tickets
12000-12999 group player had 16 tickets
13000-13253 group player had 4 tickets
this years method
10000-10812 group player had 13 tickets
10813-11625 group player had 12 tickets
11626-12438 group player had 12 tickets
12439-13253 group player had 12 tickets
i have already calculated how many tickets of each group a player needs
what i need help with is how would i assign the tickets in each group randomly to each player? nonsquential is prefered.
also after assigning the tickets to a player those tickets would have to be removed from the list so they arent available for the next player.
Each player will have a varying amount of tickets but never less than 7. no max number.
The total number of tickets is unknown but last year was 3,253 so im assuming it will be close to 4000 this year.
thanks in advance,
FreakyGirl
I have an upcoming raffle that i need to distribute the tickets amoung the players equally.
For every 25% of the tickets there are 5 prizes to be won so a player has to have tickets in each range.
ie: 3253 tickets total. divided by 4 = 812.25 so for every 812 tickets theres 5 prizes.
last year some players had 20 tickets in 1 group & only 5 in another which is why its being changed for this year.
ie: PLAYER_A has 49 tickets total.
last years method:
10000-10999 group player had 17 tickets
11000-11999 group player had 12 tickets
12000-12999 group player had 16 tickets
13000-13253 group player had 4 tickets
this years method
10000-10812 group player had 13 tickets
10813-11625 group player had 12 tickets
11626-12438 group player had 12 tickets
12439-13253 group player had 12 tickets
i have already calculated how many tickets of each group a player needs
what i need help with is how would i assign the tickets in each group randomly to each player? nonsquential is prefered.
also after assigning the tickets to a player those tickets would have to be removed from the list so they arent available for the next player.
Each player will have a varying amount of tickets but never less than 7. no max number.
The total number of tickets is unknown but last year was 3,253 so im assuming it will be close to 4000 this year.
thanks in advance,
FreakyGirl