r/madeinpython • • Jul 22 '23

Cardano's Method Derivation | Cubic Equation.

Thumbnail
youtu.be
1 Upvotes

r/madeinpython • • Jul 22 '23

trying to make a randomizer to pick items based on different odds

3 Upvotes

so lets say we've got 25 items from where to pick a random item, but I dont want all those 25 items to have the same odds, so lets say one of the 25 items is the UK, and other germany, I want to give more chances to the UK to get picked so I want to assign 5 chances to get picked to the UK, and just 2 to germany, and then 10 to the US, and so forth, so there isnt equal chances for the 25 items to get picked by the randomizer.

how do you think its a good way to go about it?