I am working on a lottery script where from a list of 5 users a random one is choosed. My problem is that some of the users must have 50% more chances to win.
For example
bob - 1 chance
rob - 1.5 chance
mike - 1 chance
john - 1 chance
todd - 1.5 chance
How can i make this work? I was thinking build an array and use array_rand
to get a random user but i have no ideea how to distribute the chances.
Thanks