1

Topic: Algorithms of draw, lottery, auction and

Greetings to all!
Prompt please algorithms for a spelling simple , lotteries, auctions taking into account probability.
For example than it is more  than money the player - that above threw probability of a scoring.  here does not help.

2

Re: Algorithms of draw, lottery, auction and

yardie wrote:

Random here does not help.

Yes perfectly helps. You add everything, you normalize, you do accumulation, and you get somewhere . Type:
The player, the Total, the Total with the accumulation, the Normalized total with accumulation
1, 2, 2, 0.2
2, 5, 7, 0.7
3, 3, 10, 1.0
If RAND () gives, say, 0,123456 - benefited the first, if there 0,456789 - the second, if 0,987654 - accordingly the third.

3

Re: Algorithms of draw, lottery, auction and

Akina;
And how in this case to make that there was more probability at that is who showers coins more?

4

Re: Algorithms of draw, lottery, auction and

yardie , and it also is it is more. The second player benefits, if RAND () gives value from 0,2 to 0,7, i.e. probability of its scoring of 50 %. And here the first benefits, if RAND () gives value from 0 to 0,2, i.e. only 20 %.

5

Re: Algorithms of draw, lottery, auction and

Here so the table if it to add range columns (From - To) will look, at hit RAND () in which given the player benefits:
The player, the Total, the Total with the accumulation, the Normalized total with accumulation, From, To
1, 2, 2, 0.2, 0, 0.2
2, 5, 7, 0.7, 0.2, 0.7
3, 3, 10, 1.0, 0.7, 1.0