Grauenwolf / TravellerTools

Tools for the Traveller RPG
MIT License
53 stars 21 forks source link

Question: Raffle formula #100

Closed cunningrat closed 2 years ago

cunningrat commented 2 years ago

Can you please let me know what is the formula behind the "Raffle" checkbox in the trade generator?

Grauenwolf commented 2 years ago

Imagine that you had a box of raffle tickets. You give some tickets to each type of good:

The 6 raffle tickets are selected (drawing another ticket if the same good is chosen more than once).


For non raffle mode the rule is:

Grauenwolf commented 2 years ago

If you read C# code, look for line 190.

https://github.com/Grauenwolf/TravellerTools/blob/blazor/TravellerTools/Grauenwolf.TravellerTools.TradeCalculator/TradeEngine.cs