Verifiable random choice (contest winner) algorithm
Hi guys, i need to pick a random winner for a contest from a list of phone numbers. Could somebody suggest a verifiable random algorithm. Something on the lines of "Pick the winner based on the daily national lottery numbers". Does anybody know a free api endpoint for lottery numbers?
(
2 comments
| 3 points
| on HN
)
random_pick = random.randint(0, len(phone_numbers)-1) print phone_numbers[random_pick]```