A simple function which takes a map of weighted options and picks one at random. This might be useful for a lottery or raffle where participants might have multiple tickets.
-
Updated
Jul 26, 2022 - Go
A simple function which takes a map of weighted options and picks one at random. This might be useful for a lottery or raffle where participants might have multiple tickets.
June LeetCoding Challenge
Add a description, image, and links to the random-pick-with-weight topic page so that developers can more easily learn about it.
To associate your repository with the random-pick-with-weight topic, visit your repo's landing page and select "manage topics."